问题:Docker 构建时使用 --production 标志,导致 playwright 无法找到 修复:将 @playwright/test 从 devDependencies 移到 dependencies
33 lines
792 B
JSON
33 lines
792 B
JSON
{
|
|
"name": "dsas-cca-backend-bun",
|
|
"private": true,
|
|
"scripts": {
|
|
"start": "bun run index.ts",
|
|
"dev": "bun run --watch index.ts",
|
|
"playwright:install": "bunx playwright install",
|
|
"cookie:get": "bun run test/get-cookies.ts",
|
|
"test": "bun test",
|
|
"test:auth": "bun test test/auth.spec.ts",
|
|
"test:ui": "bunx playwright test --ui"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "latest",
|
|
"typescript-language-server": "^5.1.3"
|
|
},
|
|
"peerDependencies": {
|
|
"typescript": "^5.9.3"
|
|
},
|
|
"dependencies": {
|
|
"@playwright/test": "^1.49.0",
|
|
"axios": "^1.9.0",
|
|
"cors": "^2.8.5",
|
|
"crypto": "^1.0.1",
|
|
"dotenv": "^16.5.0",
|
|
"express": "^5.1.0",
|
|
"p-limit": "^6.2.0",
|
|
"pangu": "^4.0.7",
|
|
"sharp": "^0.34.1",
|
|
"uuid": "^11.1.0"
|
|
}
|
|
}
|