diff --git a/package.json b/package.json index 0518158e26..5e240c5ab2 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" },