fix: remove double-dash in pnpm with:env script calls

pnpm does not consume `--` the way npm did when passing
args to scripts. The extra `--` was being forwarded to
dotenv-cli which tried to spawn it as a command, causing
ENOENT errors in CI.
This commit is contained in:
Lucas Smith
2026-03-01 13:07:34 +11:00
parent f66f01a09a
commit 0b8d107291
3 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -6,9 +6,9 @@
"build": "./.bin/build.sh",
"build:app": "pnpm run typecheck && cross-env NODE_ENV=production react-router build",
"build:server": "cross-env NODE_ENV=production rollup -c rollup.config.mjs",
"dev": "pnpm run with:env -- react-router dev",
"dev": "pnpm run with:env react-router dev",
"dev:billing": "bash .bin/stripe-dev.sh",
"start": "pnpm run with:env -- cross-env NODE_ENV=production node build/server/main.js",
"start": "pnpm run with:env cross-env NODE_ENV=production node build/server/main.js",
"clean": "rimraf .react-router && rimraf node_modules",
"typecheck": "react-router typegen && tsc",
"with:env": "dotenv -e ../../.env -e ../../.env.local --"