diff --git a/package.json b/package.json index 518397c4..ce6c5616 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/yarn.lock b/yarn.lock index 0ccc3113..958103a6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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==