From 63b09ab661bb19c63bed9cf98486ba0445420a53 Mon Sep 17 00:00:00 2001 From: kukhariev Date: Sat, 19 May 2018 20:19:52 +0300 Subject: [PATCH] build: version hook --- package.json | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index b96371a..c218d5b 100644 --- a/package.json +++ b/package.json @@ -2,14 +2,7 @@ "name": "@dropb/diskinfo", "version": "1.0.2", "description": "Get disk usage info", - "keywords": [ - "df", - "disk", - "wmic", - "filesystem", - "mount", - "size" - ], + "keywords": ["df", "disk", "wmic", "filesystem", "mount", "size"], "author": { "name": "kukhariev", "email": "q_h@inbox.ru" @@ -19,9 +12,7 @@ "npm": ">= 6.0.0" }, "license": "MIT", - "files": [ - "lib" - ], + "files": ["lib"], "main": "lib/index.js", "typings": "lib/index.d.ts", "scripts": { @@ -30,7 +21,9 @@ "test": "./node_modules/.bin/mocha", "test:watch": "./node_modules/.bin/mocha --watch", "build-ts": "tsc", - "tslint": "tslint -c tslint.json -p tsconfig.json" + "tslint": "tslint -c tslint.json -p tsconfig.json", + "preversion": "npm run build", + "postversion": "git push --follow-tags && npm publish" }, "devDependencies": { "@types/chai": "^4.1.3",