Skip to content

Commit

Permalink
feat: Installation of cross-env so 'yarn start' command works nativel…
Browse files Browse the repository at this point in the history
…y on windows

installed cross-env as a dev dependency and updated the 'yarn start' script to eliminate syntax errors when run on a windows machine.
  • Loading branch information
Bobinstein committed Aug 19, 2023
1 parent 390bd49 commit b1f6124
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@
"chai": "^4.3.6",
"chai-as-promised": "^7.1.1",
"copyfiles": "^2.4.1",
"cross-env": "^7.0.3",
"eslint": "^8.16.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-jest-formatting": "^3.1.0",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-jest-formatting": "^3.1.0",
"eslint-plugin-mocha": "^10.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-unicorn": "^45.0.2",
Expand All @@ -91,7 +92,7 @@
"build": "yarn clean && npx tsc --project ./tsconfig.prod.json && yarn copy-files",
"copy-files": "copyfiles -u 1 src/**/*.graphql src/**/*.sql dist",
"clean": "npx rimraf [ .nyc_output coverage dist ]",
"start": "NODE_OPTIONS=\"--no-warnings --loader ts-node/esm\" node src/app.ts",
"start": "cross-env NODE_OPTIONS=\"--no-warnings --loader ts-node/esm\" node src/app.ts",
"start:prod": "yarn build && node dist/app.js",
"watch": "nodemon",
"db:migrate": "ts-node-esm ./src/migrate.ts",
Expand Down
9 changes: 8 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2566,7 +2566,14 @@ create-require@^1.1.0:
resolved "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz"
integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==

cross-spawn@^7.0.0, cross-spawn@^7.0.2:
cross-env@^7.0.3:
version "7.0.3"
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.3.tgz#865264b29677dc015ba8418918965dd232fc54cf"
integrity sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==
dependencies:
cross-spawn "^7.0.1"

cross-spawn@^7.0.0, cross-spawn@^7.0.1, cross-spawn@^7.0.2:
version "7.0.3"
resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz"
integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==
Expand Down

0 comments on commit b1f6124

Please sign in to comment.