From d91782cd01076c0a20bf46404087b3834a1e47b9 Mon Sep 17 00:00:00 2001 From: blagoev Date: Mon, 20 Nov 2017 13:51:57 +0200 Subject: [PATCH] use full path to node-pre-gyp # Conflicts: # package.json --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index da0c5d74..849e2b0d 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "set-version": "scripts/set-version.sh", "lint": "eslint", "test": "scripts/test.sh", - "install": "node-pre-gyp install --fallback-to-build", + "install": "npm run isWin -s && node_modules/node-pre-gyp/bin/node-pre-gyp.cmd install --fallback-to-build || node_modules/node-pre-gyp/bin/node-pre-gyp install --fallback-to-build", "build-changes": "node-pre-gyp build --debug", "rebuild-changes": "node-pre-gyp rebuild --debug && cd tests && npm install", "prepublish": "echo prepublishing && node scripts/prepublish.js", @@ -64,7 +64,6 @@ "test-runner:jest": "cd tests/test-runners/jest && npm install --build-from-source=realm && npm test", "test-runners": "npm run test-runner:ava && npm run test-runner:mocha && npm run test-runner:jest", "isMac": "node -p \"if (process.platform == 'darwin') { process.exit(0); } else { process.exit(-1); }\"", - "testMac": "npm run isMac -s && echo this is mac || echo . ", "isWin": "node -p \"if (process.platform == 'win32') { process.exit(0); } else { process.exit(-1); }\"", "prealias:win:apply": "git config alias.apply-win-symlink-aliases \"!f() { $(scripts/git-win-symlink-aliases); }; f\"", "alias:win:apply": "git apply-win-symlink-aliases",