From 4e3dd161ffaabfe35d0b25d98a765fb1dabab37d Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Tue, 9 Apr 2024 15:48:01 -0400 Subject: [PATCH] build: Remove the `npm bin` calls from package.json That command no longer exists with newer versions of NPM but the build path for `npm run` includes the `node_modules/bin` directory now so it's also not necessary. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6c628e7c42af..3f6336ab7533 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,8 @@ "postinstall": "scripts/copy-node-modules.sh", "build": "npm run webpack && npm run compile-sass", "build-dev": "npm run webpack-dev && npm run compile-sass-dev", - "webpack": "NODE_ENV=${NODE_ENV:-production} \"$(npm bin)/webpack\" --config=${WEBPACK_CONFIG_PATH:-webpack.prod.config.js}", - "webpack-dev": "NODE_ENV=development \"$(npm bin)/webpack\" --config=webpack.dev.config.js", + "webpack": "NODE_ENV=${NODE_ENV:-production} webpack --config=${WEBPACK_CONFIG_PATH:-webpack.prod.config.js}", + "webpack-dev": "NODE_ENV=development webpack --config=webpack.dev.config.js", "compile-sass": "scripts/compile_sass.py --env=${NODE_ENV:-production}", "compile-sass-dev": "scripts/compile_sass.py --env=development", "watch": "{ npm run watch-webpack& npm run watch-sass& } && sleep infinity",