diff --git a/package-lock.json b/package-lock.json index 2e2854b..dbf930e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,6 +30,7 @@ "@types/node": "^20.14.8", "@typescript-eslint/eslint-plugin": "8.6.0", "@typescript-eslint/parser": "8.6.0", + "cross-env": "^7.0.3", "eslint": "9.11.0", "eslint-config-prettier": "9.1.0", "husky": "^9.1.6", @@ -5442,6 +5443,25 @@ "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", "dev": true }, + "node_modules/cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.1" + }, + "bin": { + "cross-env": "src/bin/cross-env.js", + "cross-env-shell": "src/bin/cross-env-shell.js" + }, + "engines": { + "node": ">=10.14", + "npm": ">=6", + "yarn": ">=1" + } + }, "node_modules/cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", diff --git a/package.json b/package.json index 75ada0a..88964d3 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,8 @@ "start": "nx serve", "build": "nx build", "build:all": "nx run-many --target=build --all", - "test": "nx test", - "test:all": "nx run-many --target=test --all", + "test": "cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" nx test", + "test:all": "cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" nx run-many --target=test --all", "e2e:all": "nx run-many --target=e2e --all", "prepare": "is-ci || husky", "lint-staged": "lint-staged" @@ -28,6 +28,7 @@ "@types/node": "^20.14.8", "@typescript-eslint/eslint-plugin": "8.6.0", "@typescript-eslint/parser": "8.6.0", + "cross-env": "^7.0.3", "eslint": "9.11.0", "eslint-config-prettier": "9.1.0", "husky": "^9.1.6",