From f5b022033dba1f37eadd2dadfe7bd1545e4d1b45 Mon Sep 17 00:00:00 2001 From: Dali Zheng Date: Wed, 19 Aug 2015 21:28:37 +0200 Subject: [PATCH] use not-in-install --- doc/CHANGELOG.md | 4 ++-- package.json | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 426bc5a39..8b0df0d77 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,8 +1,8 @@ # Changelog -##### 1.0.4 (2015-08-19) -- Improvement: do not run `prepublish` script. +##### 1.0.5 (2015-08-19) +- Improvement: do not run `prepublish` script on install. ##### 1.0.3 (2015-08-18) diff --git a/package.json b/package.json index c7cf040f0..21175f351 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fortune", "description": "High-level I/O for web applications.", - "version": "1.0.4", + "version": "1.0.5", "license": "MIT", "author": { "email": "0x8890@airmail.cc", @@ -23,8 +23,8 @@ "build:test": "mkdirp dist/test && babel test --out-dir dist/test", "build:website": "babel-node website/build", "lint": "eslint lib test website", - "preversion": "npm run clean && npm run build", - "postversion": "npm run deploy:website", + "prepublish": "not-in-install && npm run clean && npm run build", + "postpublish": "npm run deploy:website", "test": "npm run lint && npm run test:server && npm run test:browser", "test:server": "npm run build && node dist/test | tap-dot", "test:browser": "browserify test/browser.js | tape-run -b firefox | tap-dot", @@ -52,6 +52,7 @@ "highlight.js": "^8.7.0", "html-minifier": "^0.7.2", "http-server": "^0.8.0", + "in-publish": "^2.0.0", "isparta": "^3.0.3", "marked": "^0.3.5", "mkdirp": "^0.5.1",