From f3151914409442c8d8fc40ddddd49dddc67e09a5 Mon Sep 17 00:00:00 2001 From: Brian Donovan <1938+eventualbuddha@users.noreply.github.com> Date: Thu, 30 Apr 2020 13:42:47 -0700 Subject: [PATCH] remove unnecessary binstubs path (#169) NPM (and Yarn) both add the relevant binstubs path to `$PATH`, so you don't need to add it explicitly. On top of that, this hardcodes a `node_modules` layout that may not always be correct. If you were to use Yarn v2 with Zero Install, for example, it never unpacks packages into `node_modules` at all. NPM may do something similar in the future. --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 68bd6256..a607f5bb 100644 --- a/package.json +++ b/package.json @@ -33,11 +33,11 @@ }, "scripts": { "prebuild": "rimraf dist", - "build": "./node_modules/.bin/webpack", - "watch": "./node_modules/.bin/webpack --watch", - "test": "./node_modules/.bin/jest", + "build": "webpack", + "watch": "webpack --watch", + "test": "jest", "lint": "tslint --project .", - "generate-test-data": "node_modules/.bin/ts-node --project tests/ tests/generate-test-data.ts" + "generate-test-data": "ts-node --project tests/ tests/generate-test-data.ts" }, "jest": { "testRegex": ".*test.ts",