From 6d8b7c8d7b7f35188ad630aad5b0e89e3d52fb9d Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 21 Nov 2017 14:15:40 -0800 Subject: [PATCH] auto-publish scripts --- package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b8b8e73..eecb767 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,10 @@ "main": "ini.js", "scripts": { "pretest": "standard ini.js", - "test": "tap test/*.js --100" + "test": "tap test/*.js --100 -J", + "preversion": "npm test", + "postversion": "npm publish", + "postpublish": "git push origin --all; git push origin --tags" }, "engines": { "node": "*" @@ -18,7 +21,7 @@ "dependencies": {}, "devDependencies": { "standard": "^10.0.3", - "tap": "^10.7.3" + "tap": "^10.7.3 || 11" }, "license": "ISC", "files": [