refactor: rename to single package 'newspaperui' for simpler install

This commit is contained in:
sunzhongyi
2026-05-21 11:20:01 +08:00
parent 6d29e1a3e6
commit 60831e07aa
24 changed files with 42 additions and 38 deletions
+15 -10
View File
@@ -1,7 +1,7 @@
{
"name": "newspaperui-components",
"name": "newspaperui",
"version": "0.1.0",
"description": "Production-grade newspaper layout React components",
"description": "Production-grade newspaper layout React components with built-in theme and utilities",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -11,7 +11,8 @@
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
}
},
"./style.css": "./dist/style.css"
},
"files": [
"dist"
@@ -22,16 +23,13 @@
"test": "vitest run",
"test:watch": "vitest",
"lint": "tsc --noEmit",
"clean": "rm -rf dist"
"clean": "rm -rf dist",
"prepublishOnly": "pnpm build"
},
"peerDependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"dependencies": {
"newspaperui-theme": "workspace:*",
"newspaperui-utils": "workspace:*"
},
"devDependencies": {
"@testing-library/react": "^16.1.0",
"@testing-library/jest-dom": "^6.6.3",
@@ -59,9 +57,16 @@
"layout",
"typography",
"css-grid",
"multi-column"
"multi-column",
"indesign",
"editorial"
],
"publishConfig": {
"access": "public"
"access": "public",
"dependencies": {}
},
"dependencies": {
"newspaperui-theme": "workspace:*",
"newspaperui-utils": "workspace:*"
}
}