Permalink
Browse files

package: remove the "preinstall" phase and use node-bindings

  • Loading branch information...
1 parent bd28662 commit a34e5f134a9e276d17305add73e6f2d0b9a7e976 @TooTallNate TooTallNate committed Jul 11, 2012
Showing with 4 additions and 9 deletions.
  1. +1 −5 hiredis.js
  2. +3 −4 package.json
View
@@ -1,10 +1,6 @@
var hiredis, net = require("net");
-try {
- hiredis = require('./build/Release/hiredis');
-} catch (e) {
- hiredis = require('./build/default/hiredis');
-}
+hiredis = require('bindings')('nodehiredis.node');
exports.Reader = hiredis.Reader;
exports.createConnection = function(port, host) {
View
@@ -5,13 +5,12 @@
"homepage": "http://github.com/pietern/hiredis-node",
"author": "Pieter Noordhuis <pcnoordhuis@gmail.com>",
"main": "hiredis",
- "directories": {
- "lib": "."
- },
"scripts": {
- "preinstall": "make || gmake",
"test": "node test/reader.js"
},
+ "dependencies": {
+ "bindings": "*"
+ },
"engines": {
"node": "*"
}

0 comments on commit a34e5f1

Please sign in to comment.