From 6e9139d5bf4d5524caed1f3c913ce9c168cb56fe Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja Date: Fri, 4 Oct 2024 11:13:57 +0530 Subject: [PATCH] fix: resolve Node.js version compatibility and package installation issues - Upgraded Node.js to version >=14.21.3 to meet package requirements - Regenerated package-lock.json to resolve lockfile version mismatch - Cleared npm cache and reinstalled dependencies to fix missing package errors --- package-lock.json | 19 +++++++++++++++++++ package.json | 13 +++++++------ 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index a1266042..3b7b88f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35,6 +35,7 @@ "babel-loader": "^9.1.3", "babel-plugin-add-react-displayname": "^0.0.5", "copy-webpack-plugin": "^11.0.0", + "cross-env": "^7.0.3", "css-loader": "^6.7.1", "cz-conventional-changelog": "^3.3.0", "eslint": "^8.57.0", @@ -5897,6 +5898,24 @@ "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, + "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 3d61cc17..dc28677e 100644 --- a/package.json +++ b/package.json @@ -16,13 +16,13 @@ "webpack-merge": "^5.9.0" }, "scripts": { - "build:dev": "sdkEnv=sandbox webpack --config webpack.dev.js", - "build:dev-integ": "sdkEnv=integ webpack --config webpack.dev.js", - "start": "sdkEnv=local webpack serve --config webpack.dev.js", - "build:prod": "sdkEnv=prod webpack --config webpack.common.js", + "build:dev": "cross-env sdkEnv=sandbox webpack --config webpack.dev.js", + "build:dev-integ": "cross-env sdkEnv=integ webpack --config webpack.dev.js", + "start": "cross-env sdkEnv=local webpack serve --config webpack.dev.js", + "build:prod": "cross-env sdkEnv=prod webpack --config webpack.common.js", "build": "webpack --config webpack.common.js", - "build:sandbox": "sdkEnv=sandbox webpack --config webpack.common.js", - "build:integ": "sdkEnv=integ webpack --config webpack.common.js", + "build:sandbox": "cross-env sdkEnv=sandbox webpack --config webpack.common.js", + "build:integ": "cross-env sdkEnv=integ webpack --config webpack.common.js", "test": "cd cypress-tests && npm run cypress:run", "re:build": "rescript", "re:clean": "rescript clean", @@ -68,6 +68,7 @@ "babel-loader": "^9.1.3", "babel-plugin-add-react-displayname": "^0.0.5", "copy-webpack-plugin": "^11.0.0", + "cross-env": "^7.0.3", "css-loader": "^6.7.1", "cz-conventional-changelog": "^3.3.0", "eslint": "^8.57.0",