Skip to content

Commit

Permalink
Package.json: improve compilation hook(s).
Browse files Browse the repository at this point in the history
Modeled off of thingdom/node-neo4j.

Importantly, compiling pre-publish now instead of post-install.
Hopefully fixes #8.
  • Loading branch information
aseemk committed Feb 22, 2015
1 parent 0a7580b commit 72d3275
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@
"url": "https://github.com/openzoom/node-deepzoomtools.git"
},
"scripts": {
"test": "node_modules/.bin/_coffee test",
"postinstall": "_coffee -c lib"
"build": "_coffee -m -c lib/",
"clean": "rm -f lib/*.{js,map}",
"prepublish": "npm run build",
"postpublish": "npm run clean",
"test": "_coffee test"
},
"main": "./lib",
"dependencies": {
Expand Down

0 comments on commit 72d3275

Please sign in to comment.