fix: replace ts-node with tsx for worker scripts
TypeScript 7's CommonJS export no longer populates ts.sys, which ts-node's config loader depends on, breaking `npm run worker` with a TypeError. tsx (esbuild-based) doesn't rely on that API and natively resolves tsconfig.json path aliases, so tsconfig-paths is also no longer needed. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
+4
-5
@@ -11,9 +11,9 @@
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"test": "jest",
|
||||
"worker": "ts-node -r tsconfig-paths/register worker/index.ts",
|
||||
"worker:cleanup": "ts-node -r tsconfig-paths/register worker/cron-cleanup.ts",
|
||||
"worker:check": "ts-node -r tsconfig-paths/register worker/cron-check.ts",
|
||||
"worker": "tsx worker/index.ts",
|
||||
"worker:cleanup": "tsx worker/cron-cleanup.ts",
|
||||
"worker:check": "tsx worker/cron-check.ts",
|
||||
"db:migrate": "prisma migrate dev",
|
||||
"db:generate": "prisma generate"
|
||||
},
|
||||
@@ -55,8 +55,7 @@
|
||||
"jest": "^30.4.2",
|
||||
"jest-environment-node": "^30.4.1",
|
||||
"tailwindcss": "^4.3.3",
|
||||
"ts-node": "^10.9.2",
|
||||
"tsconfig-paths": "^4.2.0",
|
||||
"tsx": "^4.23.12",
|
||||
"typescript": "^7.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user