fix: drop tsx dev dependency, run tests with node's native type stripping

The tsx postinstall pulls its own esbuild binary, which fails inside the
Docker build ("Expected 0.28.2 but got 0.27.7") and broke the deploy.
Tests now run on node --experimental-strip-types, so the image installs
nothing extra.
This commit is contained in:
2026-08-18 06:45:28 +00:00
parent 606a78bef0
commit f6b81a0f5e
3 changed files with 33 additions and 33 deletions
+1 -2
View File
@@ -9,7 +9,7 @@
"start": "node ./dist/server/entry.mjs",
"migrate": "node --loader tsx ./scripts/migrate.mjs",
"astro": "astro",
"test": "node --import tsx --test tests/*.test.ts"
"test": "node --experimental-strip-types --test tests/*.test.ts"
},
"dependencies": {
"@astrojs/node": "^9.1.3",
@@ -36,7 +36,6 @@
"@types/pg": "^8.11.10",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"tsx": "^4.23.12",
"typescript": "^5.7.2"
}
}