sqljs / node-sqljs

SQL parser for node.js
36 stars 9 forks source link

postinstall #10

Open bitdivine opened 10 years ago

bitdivine commented 10 years ago

I don't know whether you are aware but you can reduce your installation to the standard "npm install" by putting make in the postinstall script:

diff --git a/package.json b/package.json
index e800b31..a3ec89a 100644
--- a/package.json
+++ b/package.json
@@ -20,6 +20,7 @@
     "sqljs": "./bin/sqljs"
   },
   "scripts": {
+    "postinstall": "make",
     "test": "make test"
   },
   "dependencies": {
langpavel commented 9 years ago

Correct way is to publish builded package on npm and gitignore files from build process.