diff --git a/e2e/package-lock.json b/e2e/package-lock.json index 278df120c28..92bb7facb25 100644 --- a/e2e/package-lock.json +++ b/e2e/package-lock.json @@ -11,6 +11,7 @@ "@types/mocha": "^10.0.10", "@vscode/test-cli": "^0.0.9", "@vscode/test-electron": "^2.4.0", + "cross-env": "^7.0.3", "mocha": "^11.1.0", "typescript": "^5.4.5" } @@ -769,6 +770,25 @@ "dev": true, "license": "MIT" }, + "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.6", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", diff --git a/e2e/package.json b/e2e/package.json index c05e39b8760..b747bc4acbe 100644 --- a/e2e/package.json +++ b/e2e/package.json @@ -3,18 +3,18 @@ "version": "0.1.0", "private": true, "scripts": { - "lint": "ESLINT_USE_FLAT_CONFIG=false eslint src/**/*.ts", + "lint": "cross-env ESLINT_USE_FLAT_CONFIG=false eslint src/**/*.ts", "check-types": "tsc --noEmit", "test": "npm run build && npx dotenvx run -f .env.local -- node ./out/runTest.js", "ci": "npm run vscode-test && npm run test", "build": "rimraf out && tsc -p tsconfig.json", "vscode-test": "cd .. && npm run vscode-test" }, - "dependencies": {}, "devDependencies": { "@types/mocha": "^10.0.10", "@vscode/test-cli": "^0.0.9", "@vscode/test-electron": "^2.4.0", + "cross-env": "^7.0.3", "mocha": "^11.1.0", "typescript": "^5.4.5" } diff --git a/package-lock.json b/package-lock.json index 5e9bd85604e..f3fd7c125cd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -85,6 +85,7 @@ "@typescript-eslint/parser": "^7.11.0", "@vscode/test-electron": "^2.5.2", "@vscode/vsce": "^3.3.2", + "cross-env": "^7.0.3", "esbuild": "^0.24.0", "eslint": "^8.57.0", "execa": "^9.5.2", @@ -11320,6 +11321,25 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "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.6", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", diff --git a/package.json b/package.json index d6e38dafd7c..a72a21f29ec 100644 --- a/package.json +++ b/package.json @@ -341,7 +341,7 @@ "install-webview": "cd webview-ui && npm install", "install-e2e": "cd e2e && npm install", "lint": "npm-run-all -l -p lint:*", - "lint:extension": "ESLINT_USE_FLAT_CONFIG=false eslint src --ext .ts", + "lint:extension": "cross-env ESLINT_USE_FLAT_CONFIG=false eslint src --ext .ts", "lint:webview": "cd webview-ui && npm run lint", "lint:e2e": "cd e2e && npm run lint", "check-types": "npm-run-all -l -p check-types:*", @@ -454,6 +454,7 @@ "@typescript-eslint/parser": "^7.11.0", "@vscode/test-electron": "^2.5.2", "@vscode/vsce": "^3.3.2", + "cross-env": "^7.0.3", "esbuild": "^0.24.0", "eslint": "^8.57.0", "execa": "^9.5.2", diff --git a/webview-ui/package-lock.json b/webview-ui/package-lock.json index c2b07ba65ef..d4fa79fd209 100644 --- a/webview-ui/package-lock.json +++ b/webview-ui/package-lock.json @@ -76,6 +76,7 @@ "@typescript-eslint/eslint-plugin": "^6.21.0", "@typescript-eslint/parser": "^6.21.0", "@vitejs/plugin-react": "^4.3.4", + "cross-env": "^7.0.3", "eslint": "^8.57.0", "eslint-config-react-app": "^7.0.1", "eslint-plugin-react": "^7.33.2", @@ -9736,6 +9737,25 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "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-fetch": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.0.0.tgz", diff --git a/webview-ui/package.json b/webview-ui/package.json index 0a1a7bfaed6..9fb6fbb226d 100644 --- a/webview-ui/package.json +++ b/webview-ui/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "lint": "ESLINT_USE_FLAT_CONFIG=false eslint src --ext .ts,.tsx", + "lint": "cross-env ESLINT_USE_FLAT_CONFIG=false eslint src --ext .ts,.tsx", "check-types": "tsc", "test": "jest -w=40%", "dev": "vite", @@ -85,6 +85,7 @@ "@typescript-eslint/eslint-plugin": "^6.21.0", "@typescript-eslint/parser": "^6.21.0", "@vitejs/plugin-react": "^4.3.4", + "cross-env": "^7.0.3", "eslint": "^8.57.0", "eslint-config-react-app": "^7.0.1", "eslint-plugin-react": "^7.33.2",