From 72d32755d7ebb05b8d1bc16ccf4bb4cb6406265e Mon Sep 17 00:00:00 2001 From: Aseem Kishore Date: Sun, 22 Feb 2015 01:23:55 -0500 Subject: [PATCH] Package.json: improve compilation hook(s). Modeled off of thingdom/node-neo4j. Importantly, compiling pre-publish now instead of post-install. Hopefully fixes #8. --- package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 73dd6f3..650bcb0 100644 --- a/package.json +++ b/package.json @@ -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": {