Skip to content

Commit

Permalink
Fix db:seed script by using --loader instead of --import (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
x15sr71 authored Oct 20, 2024
1 parent 6d0630a commit 05d6037
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "next start",
"lint": "next lint",
"dev:docker": "npm run db:seed & next dev",
"db:seed": "npx prisma db push && node --import 'data:text/javascript,import { register } from \"node:module\"; import { pathToFileURL } from \"node:url\"; register(\"ts-node/esm\", pathToFileURL(\"./\"));' prisma/seed.ts",
"db:seed": "npx prisma db push && node --loader ts-node/esm prisma/seed.ts",
"db:studio": "npx prisma studio",
"check": "prettier --check \"**/*.{ts,tsx,js,jsx,md,mdx,css}\"",
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,md,mdx,css}\"",
Expand Down Expand Up @@ -59,6 +59,7 @@
"@types/lodash": "^4.17.7",
"@types/uuid": "^10.0.0",
"@uidotdev/usehooks": "^2.4.1",
"100xdevs-job-board": "file:",
"bcryptjs": "^2.4.3",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
Expand Down

0 comments on commit 05d6037

Please sign in to comment.