chore: server dev scripts (#9445)

This commit is contained in:
forehalo
2024-12-31 03:31:05 +00:00
parent 887732179e
commit 9c119e6505
4 changed files with 9 additions and 3 deletions

View File

@@ -14,7 +14,7 @@
"test:copilot": "ava \"tests/**/copilot-*.spec.ts\"",
"test:coverage": "c8 ava --concurrency 1 --serial",
"test:copilot:coverage": "c8 ava --timeout=5m \"tests/**/copilot-*.spec.ts\"",
"data-migration": "cross-env NODE_ENV=script node ./src/data/index.ts",
"data-migration": "cross-env NODE_ENV=script r ./src/data/index.ts",
"predeploy": "yarn prisma migrate deploy && NODE_ENV=script node --import ./scripts/register.js ./dist/data/index.js run",
"postinstall": "prisma generate"
},
@@ -91,6 +91,7 @@
},
"devDependencies": {
"@affine-test/kit": "workspace:*",
"@affine-tools/cli": "workspace:*",
"@affine/server-native": "workspace:*",
"@nestjs/testing": "^10.4.15",
"@types/cookie-parser": "^1.4.8",