From fdd4e0898221c55979ecc1a7777a677ee572de1e Mon Sep 17 00:00:00 2001 From: Justin Latimer Date: Tue, 10 Jul 2012 07:41:19 +1200 Subject: [PATCH] Switch to using the bindings package to load the compiled module. 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. --- .gitignore | 1 + midi.js | 2 +- package.json | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2bd9cb3..e1f0637 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .lock-wscript build/ +node_modules/ diff --git a/midi.js b/midi.js index 9c8bdf8..bd6be1e 100644 --- a/midi.js +++ b/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; diff --git a/package.json b/package.json index bc353c1..d537c45 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,9 @@ "engines": { "node": ">=0.8.0" }, + "dependencies": { + "bindings": "*" + }, "repository" : { "type" : "git", "url" : "https://github.com/justinlatimer/node-midi.git"