diff --git a/package-lock.json b/package-lock.json index 2c741d086..72696366f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -46,6 +46,7 @@ "@swc/core": "^1.3.38", "@typescript-eslint/eslint-plugin": "^5.53.0", "bundlesize": "0.18.1", + "cross-env": "^7.0.3", "eslint": "^8.2.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-import": "^2.25.3", @@ -3709,6 +3710,24 @@ "resolved": "https://registry.npmjs.org/crelt/-/crelt-1.0.5.tgz", "integrity": "sha512-+BO9wPPi+DWTDcNYhr/W90myha8ptzftZT+LwcmUbbok0rcP/fequmFYCw8NMoH7pkAZQzU78b3kYrlua5a9eA==" }, + "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, + "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-fetch": { "version": "3.1.5", "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", @@ -14448,6 +14467,15 @@ "resolved": "https://registry.npmjs.org/crelt/-/crelt-1.0.5.tgz", "integrity": "sha512-+BO9wPPi+DWTDcNYhr/W90myha8ptzftZT+LwcmUbbok0rcP/fequmFYCw8NMoH7pkAZQzU78b3kYrlua5a9eA==" }, + "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, + "requires": { + "cross-spawn": "^7.0.1" + } + }, "cross-fetch": { "version": "3.1.5", "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", diff --git a/package.json b/package.json index cd99f7f0d..1b8f24756 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "lint:fix": "eslint --ignore-path .prettierignore --fix .", "fix": "npm run format:fix && npm run lint:fix", "test": "npm run prepack && npm run format && npm run lint && npm run jest", - "jest": "JEST_PUPPETEER_CONFIG=jest-puppeteer.config.cjs NODE_OPTIONS=--experimental-vm-modules jest", + "jest": "cross-env JEST_PUPPETEER_CONFIG=jest-puppeteer.config.cjs NODE_OPTIONS=--experimental-vm-modules jest", "perf": "bundlesize", "webpack": "webpack", "prepare": "husky install" @@ -87,6 +87,7 @@ "@swc/core": "^1.3.38", "@typescript-eslint/eslint-plugin": "^5.53.0", "bundlesize": "0.18.1", + "cross-env": "^7.0.3", "eslint": "^8.2.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-import": "^2.25.3",