From 33a23275ba43a75514618a067d1c5f2136a09e02 Mon Sep 17 00:00:00 2001 From: Jinho Bang Date: Fri, 17 Nov 2017 22:56:01 +0900 Subject: [PATCH] Use incremental builds rather than full builds In this project, we can use the following command to test examples. `$ npm test` It might be very inefficient, especially, if the number of files increases. So, it's better to use incremental builds rather than full builds. We can accomplish this by combining `configure` and `build` commands instead of `rebuild` command. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f2883aceb..f2ee58ac3 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "url": "git://github.com/nodejs/node-addon-api.git" }, "scripts": { - "pretest": "node-gyp rebuild -C test", + "pretest": "node-gyp configure build -C test", "test": "node test", "doc": "doxygen doc/Doxyfile" },