fix(server): data-migration script (#9306)

This commit is contained in:
Brooooooklyn
2024-12-25 13:43:47 +00:00
parent 5274441e14
commit 80f4af681a
2 changed files with 3 additions and 1 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": "NODE_ENV=script node ./src/data/index.ts",
"data-migration": "cross-env NODE_ENV=script node ./src/data/index.ts",
"predeploy": "yarn prisma migrate deploy && node --import ./scripts/register.js ./dist/data/index.js run",
"postinstall": "prisma generate"
},
@@ -107,6 +107,7 @@
"@types/supertest": "^6.0.2",
"ava": "^6.2.0",
"c8": "^10.1.3",
"cross-env": "^7.0.3",
"nodemon": "^3.1.7",
"sinon": "^19.0.2",
"supertest": "^7.0.0"

View File

@@ -789,6 +789,7 @@ __metadata:
ava: "npm:^6.2.0"
c8: "npm:^10.1.3"
cookie-parser: "npm:^1.4.7"
cross-env: "npm:^7.0.3"
dotenv: "npm:^16.4.7"
express: "npm:^4.21.2"
fast-xml-parser: "npm:^4.5.0"