From fa0e887cff1d8f4f42ce17a4b784fed4c173eaf3 Mon Sep 17 00:00:00 2001 From: Matt Esch Date: Tue, 8 Dec 2020 03:59:50 +0000 Subject: [PATCH] use node-gyp and node-pre-gyp in node_modules/.bin --- package.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index d687104b..c1d1da2e 100644 --- a/package.json +++ b/package.json @@ -8,14 +8,14 @@ "example": "examples" }, "scripts": { - "install": "npm install node-pre-gyp && ./node_modules/node-pre-gyp/bin/node-pre-gyp install --fallback-to-build", - "clean": "./node_modules/node-gyp/bin/node-gyp.js clean", - "configure": "./node_modules/node-gyp/bin/node-gyp.js configure", + "install": "node-pre-gyp install --fallback-to-build", + "clean": "node-gyp clean", + "configure": "node-gyp configure", "lint": "clang-format-lint src/*.cc src/*.h && eslint --ext .js .", "format": "clang-format-lint --fix src/*.cc src/*.h && eslint --fix --ext .js .", - "build": "npm run format && ./node_modules/node-gyp/bin/node-gyp.js rebuild", - "build:debug": "npm run format && ./node_modules/node-gyp/bin/node-gyp.js rebuild --debug", - "license:report": "mkdir -p report && ./node_modules/grunt/bin/grunt grunt-license-report", + "build": "npm run format && node-gyp rebuild", + "build:debug": "npm run format && node-gyp rebuild --debug", + "license:report": "mkdir -p report && grunt grunt-license-report", "license:addheader": "license-check-and-add", "test": "jest --verbose" },