From 6073578b6114dcc32ea31f4869ca06895cc6ba8d Mon Sep 17 00:00:00 2001 From: Steve King Date: Mon, 17 Jun 2019 09:24:52 +0100 Subject: [PATCH] Add npm scripts for version control --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index d117504..76da7df 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,8 @@ "src/**/*.js" ], "scripts": { + "preversion": "npm test", + "postversion": "npm publish && git push && git push --tags", "test": "mocha ./test/*.spec.js" }, "engines": {