This commit is contained in:
2026-05-07 09:16:01 +08:00
parent ccc46844b6
commit 1980364521
99 changed files with 2664 additions and 934 deletions

View File

@@ -1,5 +1,5 @@
{
"name": "vite-react-lib",
"name": "@defgov/vite-react-lib",
"version": "0.0.0",
"private": true,
"type": "module",
@@ -22,23 +22,18 @@
"dist"
],
"scripts": {
"gen-css": "ts-node scripts/gen-index-css.ts",
"gen-ts": "ts-node scripts/gen-index-ts.ts",
"gen-index": "pnpm run gen-css && pnpm run gen-ts",
"dev": "pnpm run gen-index && vite build --watch",
"build": "pnpm run gen-index && tsc -p tsconfig.build.json && vite build"
"gen-index": "ts-node scripts/gen-index.ts",
"gen-dts": "tsc -p tsconfig.build.json",
"dev": "pnpm gen-index && vite build --watch",
"build": "pnpm gen-index && vite build && pnpm gen-dts"
},
"devDependencies": {
"@rollup/plugin-typescript": "^12.3.0",
"@types/node": "^25.6.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "~5.2.0",
"@vitejs/plugin-react": "^6.0.1",
"glob": "^13.0.6",
"typescript": "~6.0.3",
"vite": "~7.3.2",
"vite-plugin-dts": "^4.5.4",
"ts-node": "^10.9.2"
"ts-node": "^10.9.2",
"typescript": "^6.0.3",
"vite": "^8.0.10"
},
"peerDependencies": {
"react": "^19",