From ad98ac38d9735b52946b0c403c2af8287a12eabe Mon Sep 17 00:00:00 2001 From: Alex Mubarakshin Date: Sat, 22 Apr 2023 12:31:45 +0300 Subject: [PATCH] Update build scripts to use local Node.js installation Updated the build and build:watch scripts in the package.json file to use the webpack command directly, and removed the hardcoded path to the Node.js executable. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6f70a89..c90c79a 100755 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "description": "This plugin template uses Typescript. If you are familiar with Javascript, Typescript will look very familiar. In fact, valid Javascript code is already valid Typescript code.", "license": "ISC", "scripts": { - "build": "/usr/local/bin/node node_modules/.bin/webpack --mode=production", - "build:watch": "/usr/local/bin/node node_modules/.bin/webpack --mode=development --watch", + "build": "webpack --mode=production", + "build:watch": "webpack --mode=development --watch", "prettier:format": "prettier --write 'src/**/*.{js,jsx,ts,tsx,css,json}' " }, "dependencies": {