Skip to content

Commit a9b4091

Browse files
committed
Add node-gyp-build
1 parent e8a6e95 commit a9b4091

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

binding.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// don't move this file. It should be next to package.json
2+
module.exports = require('node-gyp-build')(__dirname);

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "A simple file watcher for Node",
55
"main": "js/src/index.js",
66
"scripts": {
7+
"install": "node-gyp-build",
78
"lint": "eslint js/src js/spec",
89
"test": "yarn lint && node js/scripts/test.js"
910
},
@@ -29,7 +30,8 @@
2930
],
3031
"homepage": "https://github.com/axosoft/node-simple-file-watcher",
3132
"dependencies": {
32-
"node-addon-api": "*"
33+
"node-addon-api": "*",
34+
"node-gyp-build": "^4.2.3"
3335
},
3436
"devDependencies": {
3537
"eslint": "^6.8.0",

0 commit comments

Comments
 (0)