Install the required packages:
pnpm install tsconfig-paths ts-node --save-dev
Update the package.json
"seed": "ts-node drizzle/seed.ts"
Update the tsconfig.json
"ts-node": {
"compilerOptions": {
"module": "CommonJS"
},
"require": ["tsconfig-paths/register"],
"paths": {
"@/*": ["./*"]
}
}
Run the seed command
pnpm run seed