统一 pnpm 10 + Node 24.15.0 + Turborepo 单仓,落地 ESLint 9 flat、Prettier、commitlint、husky 与 Gitea CI,作为后续批次的一致门禁。
69 lines
2.3 KiB
JSON
69 lines
2.3 KiB
JSON
{
|
|
"name": "lingxi",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "灵犀 · 信息流广告素材一站式生产平台",
|
|
"packageManager": "pnpm@10.34.9",
|
|
"engines": {
|
|
"node": "24.15.0",
|
|
"pnpm": ">=10.0.0 <11.0.0"
|
|
},
|
|
"scripts": {
|
|
"preinstall": "node scripts/only-allow-pnpm.mjs",
|
|
"prepare": "husky",
|
|
"dev": "turbo run dev --parallel",
|
|
"build": "turbo run build",
|
|
"lint": "eslint . --max-warnings=0",
|
|
"lint:fix": "eslint . --fix",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check .",
|
|
"typecheck": "turbo run typecheck && tsc -p tsconfig.json --noEmit",
|
|
"test": "turbo run test",
|
|
"test:int": "turbo run test:int",
|
|
"test:e2e": "turbo run build && playwright test",
|
|
"compose:up": "docker compose -f infra/docker-compose.dev.yaml up -d --wait",
|
|
"compose:down": "docker compose -f infra/docker-compose.dev.yaml down",
|
|
"db:generate": "prisma generate",
|
|
"db:migrate": "prisma migrate dev",
|
|
"db:reset": "prisma migrate reset --force",
|
|
"db:seed": "tsx prisma/seed.ts",
|
|
"openapi:export": "tsx --tsconfig apps/api/tsconfig.json apps/api/src/scripts/export-openapi.ts && openapi-typescript openapi/lingxi.openapi.json -o apps/web/src/api/generated/openapi.d.ts",
|
|
"openapi:diff": "node scripts/openapi-diff.mjs",
|
|
"postinstall": "prisma generate"
|
|
},
|
|
"devDependencies": {
|
|
"@commitlint/cli": "20.5.3",
|
|
"@commitlint/config-conventional": "20.5.3",
|
|
"@eslint/js": "9.39.5",
|
|
"@playwright/test": "1.59.1",
|
|
"@prisma/client": "6.19.3",
|
|
"@types/node": "24.19.2",
|
|
"@types/react": "19.3.0",
|
|
"@types/react-dom": "19.3.0",
|
|
"@vitest/coverage-v8": "3.2.7",
|
|
"dotenv": "18.0.9",
|
|
"eslint": "9.39.5",
|
|
"eslint-import-resolver-typescript": "4.4.5",
|
|
"eslint-plugin-import-x": "4.17.1",
|
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
"eslint-plugin-react-hooks": "7.1.1",
|
|
"eslint-plugin-react-refresh": "0.5.7",
|
|
"eslint-plugin-simple-import-sort": "14.0.0",
|
|
"globals": "17.14.0",
|
|
"husky": "9.1.7",
|
|
"lint-staged": "16.4.0",
|
|
"openapi-typescript": "7.13.0",
|
|
"prettier": "3.9.10",
|
|
"prisma": "6.19.3",
|
|
"tsup": "8.5.1",
|
|
"tsx": "4.23.15",
|
|
"turbo": "2.11.10",
|
|
"typescript": "5.9.3",
|
|
"typescript-eslint": "8.72.1",
|
|
"vitest": "3.2.7"
|
|
},
|
|
"prisma": {
|
|
"seed": "tsx prisma/seed.ts"
|
|
}
|
|
}
|