Skip to content

Commit 8ce9942

Browse files
authored
Merge pull request #250 from objectstack-ai/copilot/fix-vercel-build-issues
2 parents 847f13e + d12f135 commit 8ce9942

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

packages/core/package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@object-ui/core",
33
"version": "0.3.1",
4+
"type": "module",
45
"license": "MIT",
56
"description": "Core logic, types, and validation for Object UI. Zero React dependencies.",
67
"homepage": "https://www.objectui.org",
@@ -12,8 +13,15 @@
1213
"bugs": {
1314
"url": "https://github.com/objectstack-ai/objectui/issues"
1415
},
15-
"main": "dist/index.js",
16-
"types": "dist/index.d.ts",
16+
"main": "./dist/index.js",
17+
"module": "./dist/index.js",
18+
"types": "./dist/index.d.ts",
19+
"exports": {
20+
".": {
21+
"types": "./dist/index.d.ts",
22+
"import": "./dist/index.js"
23+
}
24+
},
1725
"scripts": {
1826
"build": "tsc",
1927
"test": "vitest run",

packages/react/package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@object-ui/react",
33
"version": "0.3.1",
4+
"type": "module",
45
"license": "MIT",
56
"description": "React bindings and SchemaRenderer component for Object UI",
67
"homepage": "https://www.objectui.org",
@@ -12,8 +13,15 @@
1213
"bugs": {
1314
"url": "https://github.com/objectstack-ai/objectui/issues"
1415
},
15-
"main": "dist/index.js",
16-
"types": "dist/index.d.ts",
16+
"main": "./dist/index.js",
17+
"module": "./dist/index.js",
18+
"types": "./dist/index.d.ts",
19+
"exports": {
20+
".": {
21+
"types": "./dist/index.d.ts",
22+
"import": "./dist/index.js"
23+
}
24+
},
1725
"scripts": {
1826
"build": "tsc",
1927
"test": "vitest run",

0 commit comments

Comments
 (0)