Skip to content

Commit

Permalink
Switch to using the bindings package to load the compiled module.
Browse files Browse the repository at this point in the history
Removes a hard coded path in midi.js.
Added bindings to the dependencies in the package.json.
Added the node_modules folder to the git ignore.
  • Loading branch information
justinlatimer committed Jul 9, 2012
1 parent 63cea56 commit fdd4e08
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
.lock-wscript
build/
node_modules/
2 changes: 1 addition & 1 deletion midi.js
@@ -1,4 +1,4 @@
var midi = require('./build/Release/midi');
var midi = require('bindings')('midi');

// MIDI input inherits from EventEmitter
var EventEmitter = require('events').EventEmitter;
Expand Down
3 changes: 3 additions & 0 deletions package.json
Expand Up @@ -20,6 +20,9 @@
"engines": {
"node": ">=0.8.0"
},
"dependencies": {
"bindings": "*"
},
"repository" : {
"type" : "git",
"url" : "https://github.com/justinlatimer/node-midi.git"
Expand Down

0 comments on commit fdd4e08

Please sign in to comment.