Files
omniai-ds-code-package/package.json
T
stringadmin 3321b96e29 chore: 接入 husky + lint-staged,pre-commit 跑 tsc,pre-push 跑 css:audit
- pre-commit: npx lint-staged → tsc --noEmit(仅检查暂存的 TS/TSX 文件)
2026-06-16 13:01:46 +08:00

37 lines
939 B
JSON

{
"name": "omniai-web-preview",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite --host 127.0.0.1",
"build": "vite build",
"preview": "vite preview --host 127.0.0.1",
"type-check": "tsc -p tsconfig.json --noEmit",
"test": "vitest",
"test:run": "vitest run",
"test:coverage": "vitest run --coverage",
"css:audit": "node scripts/css-audit.mjs",
"prepare": "husky"
},
"dependencies": {
"@ant-design/icons": "5.3.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"scheduler": "0.23.0",
"zustand": "5.0.13"
},
"devDependencies": {
"@types/react": "18.2.55",
"@types/react-dom": "18.2.18",
"@vitejs/plugin-react": "4.2.1",
"@vitest/coverage-v8": "^1.6.0",
"husky": "^9.1.7",
"lint-staged": "^17.0.7",
"typescript": "5.3.3",
"vite": "5.1.0",
"vite-plugin-compression2": "2.5.3",
"vitest": "^1.6.0"
}
}