From 912f3619eb52631f81215b97328b6bcdd01842c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Jaenisch?= Date: Tue, 26 Sep 2023 16:17:00 +0200 Subject: [PATCH] fix: use PATH expansion for run-scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Yarn is including `./node_modules/.bin` in $PATH when evaluating run-commands. In other words, they don't have to be included for executables inside of `package.json`. Signed-off-by: André Jaenisch --- package.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index f5ee0e2..5e57d9f 100644 --- a/package.json +++ b/package.json @@ -50,19 +50,19 @@ "start": "node ./", "dev": "LOG_LEVEL=debug yarn run watch & yarn run build:static:dev", "test": "yarn run lint && mocha", - "watch": "./node_modules/.bin/nodemon --config nodemon.json ./", + "watch": "nodemon --config nodemon.json ./", "build": "yarn run build:server && yarn run build:static", "build:server": "ncc build ./src/index.js -o dist", "build:static": "webpack --config webpack.config.js --env static=true --env mode=production", "build:static:dev": "webpack --config webpack.config.js --env static=true --env mode=development", "lint": "yarn run standard:check && yarn run biome:check", - "standard:check": "./node_modules/.bin/standard ./src", - "standard:fix": "./node_modules/.bin/standard --fix ./src", "biome:check": "biome check ./src && biome lint ./src", "biome:fix": "biome check --apply ./src && biome lint --apply ./src", - "license:check": "./node_modules/.bin/license-check-and-add check", - "license:add": "./node_modules/.bin/license-check-and-add add", - "license:remove": "./node_modules/.bin/license-check-and-add remove" + "standard:check": "standard ./src", + "standard:fix": "standard --fix ./src", + "license:check": "license-check-and-add check", + "license:add": "license-check-and-add add", + "license:remove": "license-check-and-add remove" }, "repository": { "type": "git",