From 44e24c65e50d203e833e879b9a3d7644371bbf73 Mon Sep 17 00:00:00 2001 From: Jacob Hansson Date: Wed, 14 Oct 2015 19:26:38 -0500 Subject: [PATCH] Make npm install build the es6 project, and include the build/node/neo4j.js as the main entry point --- .npmignore | 1 + package.json | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 000000000..f1ff06d60 --- /dev/null +++ b/.npmignore @@ -0,0 +1 @@ +lib/ \ No newline at end of file diff --git a/package.json b/package.json index 5eeb805b6..f13a9dc31 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,10 @@ }, "scripts": { "test": "gulp test", - "build": "gulp" + "build": "gulp all", + "prepublish": "npm run build" }, - "main": "lib/neo4j.js", + "main": "build/node/neo4j.js", "devDependencies": { "babelify": "^6.3.0", "browserify": "^11.0.0",