Files
nexu-io__open-design/packages/components/package.json
elifive555555 2eb6478a38 fix(components): add @types/react-dom so the package builds standalone
dialog.tsx now imports createPortal from react-dom, but the package's
own devDependencies never carried its types — tsc resolves them from a
sibling's node_modules in some layouts, and a fresh pnpm install fails
postinstall with TS7016 in others. Declare the dependency where the
import lives.
2026-09-01 18:43:20 +08:00

45 lines
1.1 KiB
JSON

{
"name": "@open-design/components",
"version": "0.8.0",
"private": true,
"type": "module",
"description": "Shared Open Design React UI primitives.",
"main": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"src/styles.css"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"development": "./src/index.ts",
"default": "./dist/index.mjs"
},
"./styles.css": "./src/styles.css"
},
"scripts": {
"build": "tsx ./esbuild.config.ts && tsc -p tsconfig.json --emitDeclarationOnly",
"test": "vitest run -c vitest.config.ts",
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.tests.json --noEmit"
},
"peerDependencies": {
"react": "18.3.1"
},
"devDependencies": {
"@testing-library/react": "16.3.2",
"@types/react": "18.3.28",
"@types/react-dom": "18.3.7",
"esbuild": "0.28.0",
"jsdom": "29.1.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"tsx": "4.22.3",
"typescript": "5.9.3",
"vitest": "4.1.6"
},
"engines": {
"node": "~24"
}
}