diff --git a/package-lock.json b/package-lock.json index 10c8188f9c..60d6c90f7a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,8 @@ "@vuelidate/validators": "^2.0.4", "@vueuse/components": "^10.11.0", "@vueuse/core": "^10.11.0", - "axios": "^1.6.2", + "axios": "^1.7.4", + "cross-env": "^7.0.3", "dayjs": "^1.11.10", "kjua": "^0.9.0", "maska": "^2.1.10", @@ -3101,16 +3102,6 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@openapitools/openapi-generator-cli/node_modules/axios": { - "version": "1.6.8", - "dev": true, - "license": "MIT", - "dependencies": { - "follow-redirects": "^1.15.6", - "form-data": "^4.0.0", - "proxy-from-env": "^1.1.0" - } - }, "node_modules/@openapitools/openapi-generator-cli/node_modules/chalk": { "version": "4.1.2", "dev": true, @@ -4476,8 +4467,9 @@ "license": "MIT" }, "node_modules/axios": { - "version": "1.7.3", - "license": "MIT", + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz", + "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==", "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", @@ -5703,9 +5695,25 @@ "node": ">=8" } }, + "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==", + "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", - "dev": true, "license": "MIT", "dependencies": { "path-key": "^3.1.0", @@ -8404,7 +8412,6 @@ }, "node_modules/isexe": { "version": "2.0.0", - "dev": true, "license": "ISC" }, "node_modules/isobject": { @@ -11464,7 +11471,6 @@ }, "node_modules/path-key": { "version": "3.1.1", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -12599,7 +12605,6 @@ }, "node_modules/shebang-command": { "version": "2.0.0", - "dev": true, "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" @@ -12610,7 +12615,6 @@ }, "node_modules/shebang-regex": { "version": "3.0.0", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -14500,7 +14504,6 @@ }, "node_modules/which": { "version": "2.0.2", - "dev": true, "license": "ISC", "dependencies": { "isexe": "^2.0.0" diff --git a/package.json b/package.json index b1d243dabe..97dcebb441 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,9 @@ "author": "Dataport Bildungscloud", "private": true, "scripts": { - "serve": "NODE_ENV=development webpack serve --config config/webpack/webpack.dev.js", - "build": "NODE_ENV=production webpack --config config/webpack/webpack.prod.js", - "test": "npm run test:unit", + "serve": "cross-env NODE_ENV=development webpack serve --config config/webpack/webpack.dev.js", + "build": "cross-env NODE_ENV=production webpack --config config/webpack/webpack.prod.js", + "test": "cross-env NODE_ENV=test npm run test:unit", "test:unit": "npx jest", "test:unit:ci": "npm run test:unit -- --coverage --ci --maxWorkers=4", "lint": "npx eslint 'src/**/*.{ts,js,vue}'", @@ -23,7 +23,8 @@ "@vuelidate/validators": "^2.0.4", "@vueuse/components": "^10.11.0", "@vueuse/core": "^10.11.0", - "axios": "^1.6.2", + "axios": "^1.7.4", + "cross-env": "^7.0.3", "dayjs": "^1.11.10", "kjua": "^0.9.0", "maska": "^2.1.10", @@ -95,6 +96,11 @@ "webpack-merge": "^5.10.0", "webpack-plugin-vuetify": "^3.0.3" }, + "overrides": { + "@openapitools/openapi-generator-cli": { + "axios": "$axios" + } + }, "engines": { "node": "18", "npm": ">=9"