From a72423d3d9b45c8fe6f7097d14e682d70e204e42 Mon Sep 17 00:00:00 2001 From: "M. George Hansen" Date: Wed, 3 Jun 2020 10:35:28 -0700 Subject: [PATCH] chore: add release script & supporting scripts --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a37ca0d..710bbad 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,12 @@ "scripts": { "build": "tsc", "clean": "ts-node scripts/clean.ts", - "prepublishOnly": "npm run clean && npm run build", + "prepublishOnly": "npm run reset && npm test", "pretest": "npm run build", + "preversion": "npm run reset && npm test", + "publish": "npm publish", + "release": "npm version", + "reset": "npm run clean && npm ci", "test": "ts-node --project=test/tsconfig.json test/run-tests.ts" }, "devDependencies": {