Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit b6399ef

Browse files
author
Andy Dill
committed
use bindings to eliminate fixed path search for node module
1 parent 2b78185 commit b6399ef

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/spellchecker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var path = require('path');
2-
var bindings = require('../build/Release/spellchecker.node');
2+
var bindings = require('bindings')('spellchecker.node');
33

44
var Spellchecker = bindings.Spellchecker;
55

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"jasmine-focused": "1.x"
2525
},
2626
"dependencies": {
27+
"bindings": "^1.2.1",
2728
"nan": "^2.0.0"
2829
}
2930
}

0 commit comments

Comments
 (0)