1
0
Fork 0

refactor(package.json): replace tsx with esbuild for seeding database

This commit is contained in:
Vojtěch Mareš 2023-07-04 18:36:47 +02:00
parent f6558172b0
commit 2745bb32c7
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
3 changed files with 99 additions and 171 deletions

View file

@ -7,7 +7,8 @@
"dev": "next dev",
"postinstall": "prisma generate",
"lint": "next lint",
"start": "next start"
"start": "next start",
"seed": "esbuild prisma/seed.ts --outfile=seed.cjs --bundle --format=cjs --external:prisma --external:@prisma/client --platform=node && node seed.cjs"
},
"dependencies": {
"@headlessui/react": "^1.7.15",
@ -35,6 +36,7 @@
"@typescript-eslint/eslint-plugin": "^5.59.6",
"@typescript-eslint/parser": "^5.59.6",
"autoprefixer": "^10.4.14",
"esbuild": "^0.18.11",
"eslint": "^8.40.0",
"eslint-config-next": "^13.4.2",
"postcss": "^8.4.21",
@ -42,15 +44,11 @@
"prettier-plugin-tailwindcss": "^0.2.8",
"prisma": "^4.14.0",
"tailwindcss": "^3.3.0",
"tsx": "^3.12.7",
"typescript": "^5.1.3"
},
"ct3aMetadata": {
"initVersion": "7.14.1"
},
"prisma": {
"seed": "tsx prisma/seed.ts"
},
"engines": {
"node": ">=18.0.0 <19.0.0"
}