Skip to content

Commit 1f870d0

Browse files
CopilotSMSDAO
andcommitted
Fix neo-ux-core package.json to match lockfile dependencies
Restore missing devDependencies (tsup, typescript, eslint, @types/*) that were in the lockfile but removed from package.json. This was causing CI failures with "pnpm-lock.yaml is not up to date" errors. - Add back devDependencies: @types/react, @types/react-dom, eslint, tsup, typescript - Add private: false for npm publishing - Add sideEffects: false for tree-shaking - Add lint script - Reorder exports with types first (best practice) Co-authored-by: SMSDAO <[email protected]>
1 parent 5561e85 commit 1f870d0

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

packages/neo-ux-core/package.json

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,36 @@
11
{
22
"name": "@castquest/neo-ux-core",
33
"version": "0.1.0",
4+
"private": false,
45
"main": "dist/index.js",
56
"module": "dist/index.js",
67
"types": "dist/index.d.ts",
8+
"sideEffects": false,
79
"scripts": {
810
"build": "tsup src/index.ts --format esm,cjs --dts --clean",
9-
"dev": "tsup src/index.ts --watch --dts"
11+
"dev": "tsup src/index.ts --watch --dts",
12+
"lint": "eslint src --ext .ts,.tsx"
13+
},
14+
"peerDependencies": {
15+
"react": ">=18",
16+
"react-dom": ">=18"
1017
},
1118
"dependencies": {
1219
"react": "^18.2.0",
1320
"react-dom": "^18.2.0"
1421
},
15-
"peerDependencies": {
16-
"react": ">=18",
17-
"react-dom": ">=18"
22+
"devDependencies": {
23+
"@types/react": "^18.2.0",
24+
"@types/react-dom": "^18.2.0",
25+
"eslint": "^8.56.0",
26+
"tsup": "^8.0.0",
27+
"typescript": "5.3.3"
1828
},
1929
"exports": {
2030
".": {
31+
"types": "./dist/index.d.ts",
2132
"import": "./dist/index.js",
22-
"require": "./dist/index.js",
23-
"types": "./dist/index.d.ts"
33+
"require": "./dist/index.js"
2434
}
2535
}
2636
}

0 commit comments

Comments
 (0)