From 79e7a61b7a835726ee66aac81f93bd759c2b8702 Mon Sep 17 00:00:00 2001 From: slikts Date: Thu, 8 Aug 2019 19:39:00 +0300 Subject: [PATCH] Prepare before publishing --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2e56ec7c0..30c70a30d 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "build": "npm run clean && tsc && tsc -p tsconfig.es6.json", "postbuild": "mkdir lib/lib && shx cp -R lib/*.{ts,js} lib/lib && shx cp {LICENSE,*.md} lib && ./scripts/prepare.js", "prepublishOnly": "echo Use 'npm run publish' instead && exit 1", - "publish": "npm publish lib", + "publish": "npm run prepare && npm publish lib", "prepare": "npm run build", "doctoc": "doctoc README.md docs/introduction/code-conventions.md --title \"**Table of contents**\"", "mocha": "mocha -r ts-node/register test/*.ts",