Skip to content

Commit

Permalink
Improve race condition in npm run dev
Browse files Browse the repository at this point in the history
  • Loading branch information
humphd committed Mar 23, 2023
1 parent 315335e commit 4896d02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
"build:remix": "remix build",
"build:server": "esbuild --platform=node --format=cjs ./server.ts --outdir=build --bundle",
"predev": "npm run build:server",
"dev": "cross-env NODE_ENV=development SECRETS_OVERRIDE=1 run-p dev:remix dev:server",
"dev": "cross-env NODE_ENV=development SECRETS_OVERRIDE=1 run-p dev:remix dev:server:delay",
"dev:build": "npm run build:server -- --watch",
"delay": "node -e \"setTimeout(() => process.exit(0), 3000)\"",
"dev:remix": "remix watch",
"dev:server:delay": "run-s delay dev:server",
"dev:server": "node --inspect --require ./node_modules/dotenv/config ./build/server.js",
"docker": "docker-compose up -d",
"lint": "eslint \"**/*.{js,ts,jsx,tsx}\" --cache --cache-location ./node_modules/.cache/eslint .",
Expand Down

0 comments on commit 4896d02

Please sign in to comment.