From a0b4d8a9f811c60018b71f26e2f55b115eb68f19 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 21 Sep 2017 17:39:34 +0100 Subject: [PATCH] Clean on prerelease To avoid any further problems where we ship build files with the wrong capitalisation because npm is dumb --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0518158e269..5e240c5ab2c 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "lint": "eslint src/", "lintall": "eslint src/ test/", "clean": "rimraf lib", - "prepublish": "npm run build && git rev-parse HEAD > git-revision.txt", + "prepublish": "npm run clean && npm run build && git rev-parse HEAD > git-revision.txt", "test": "karma start --single-run=true --browsers ChromeHeadless", "test-multi": "karma start" },