mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 07:43:16 +10:00
When prisma:migrate-dev needs to reset the database it will run the seed script to repopulate data. Now that we've added the seed script to our root setup command we will want to avoid this behaviour since we will end up double seeding the database which currently can cause issues.
32 lines
821 B
JSON
32 lines
821 B
JSON
{
|
|
"name": "@documenso/prisma",
|
|
"version": "1.0.0",
|
|
"main": "./index.ts",
|
|
"types": "./index.ts",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"build": "prisma generate",
|
|
"format": "prisma format",
|
|
"clean": "rimraf node_modules",
|
|
"post-install": "prisma generate",
|
|
"prisma:generate": "prisma generate",
|
|
"prisma:migrate-dev": "prisma migrate dev --skip-seed",
|
|
"prisma:migrate-deploy": "prisma migrate deploy",
|
|
"prisma:seed": "prisma db seed"
|
|
},
|
|
"prisma": {
|
|
"seed": "ts-node --transpileOnly --project ./tsconfig.seed.json ./seed-database.ts"
|
|
},
|
|
"dependencies": {
|
|
"@prisma/client": "5.4.2",
|
|
"prisma": "5.4.2",
|
|
"ts-pattern": "^5.0.6"
|
|
},
|
|
"devDependencies": {
|
|
"dotenv": "^16.3.1",
|
|
"dotenv-cli": "^7.3.0",
|
|
"ts-node": "^10.9.1",
|
|
"typescript": "5.2.2"
|
|
}
|
|
}
|