Commit 89c26294 by Dane Springmeyer

use node-pre-gyp instead of homegrown solution

parent da0800bf
var Binary = require('./binary_name.js').Binary; var binding = require('./node_sqlite3.node');
var binary = new Binary({name:'node_sqlite3'});
var binding;
try {
binding = require(binary.getRequirePath('Debug'));
} catch (err) {
binding = require(binary.getRequirePath('Release'));
}
var sqlite3 = module.exports = exports = binding; var sqlite3 = module.exports = exports = binding;
var path = require('path'); var path = require('path');
var util = require('util'); var util = require('util');
......
{ {
"name": "sqlite3", "name": "sqlite3",
"description": "Asynchronous, non-blocking SQLite3 bindings", "description": "Asynchronous, non-blocking SQLite3 bindings",
"version": "2.1.19", "version": "2.2.0-alpha",
"abi":"a",
"homepage": "http://github.com/mapbox/node-sqlite3", "homepage": "http://github.com/mapbox/node-sqlite3",
"author": { "author": {
"name": "MapBox", "name": "MapBox",
"url": "https://mapbox.com/" "url": "https://mapbox.com/"
}, },
"binary": {
"module_name": "node_sqlite3",
"module_path": "./lib",
"remote_uri": "http://node-sqlite3.s3.amazonaws.com",
"template": "{configuration}/{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz"
},
"contributors": [ "contributors": [
"Konstantin Käfer <mail@kkaefer.com>", "Konstantin Käfer <mail@kkaefer.com>",
"Dane Springmeyer <dane@mapbox.com>", "Dane Springmeyer <dane@mapbox.com>",
...@@ -30,18 +35,23 @@ ...@@ -30,18 +35,23 @@
"url": "git://github.com/mapbox/node-sqlite3.git" "url": "git://github.com/mapbox/node-sqlite3.git"
}, },
"dependencies": { "dependencies": {
"mkdirp":"~0.3.5", "node-pre-gyp": "~0.2.5"
"tar.gz": "~0.1.1"
}, },
"bundledDependencies":["mkdirp","tar.gz","progress"], "bundledDependencies": [
"node-pre-gyp"
],
"engines": { "engines": {
"node": ">= 0.6.13 < 0.11.0" "node": ">= 0.8.0 < 0.11.0"
}, },
"scripts": { "scripts": {
"install": "node build.js", "install": "node-pre-gyp install --fallback-to-build",
"pretest": "node test/support/createdb.js", "pretest": "node test/support/createdb.js",
"test": "mocha -R spec --timeout 200000" "test": "mocha -R spec --timeout 200000"
}, },
"licenses": [{ "type": "BSD" }], "licenses": [
{
"type": "BSD"
}
],
"main": "./lib/sqlite3" "main": "./lib/sqlite3"
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment