Skip to content

Commit 58cef85

Browse files
committed
Clean dist before prepublish
Otherwise you risk accidentally publishing stale files from a previous release.
1 parent efebc86 commit 58cef85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"mocha": "mocha --expose-gc test/runner test/tests --timeout 15000",
8585
"mochaDebug": "mocha --expose-gc --debug-brk test/runner test/tests --timeout 15000",
8686
"postinstall": "node lifecycleScripts/postinstall",
87-
"prepublish": "npm run babel",
87+
"prepublish": "rm -rf dist && npm run babel",
8888
"rebuild": "node generate && npm run babel && node-gyp configure build",
8989
"rebuildDebug": "node generate && npm run babel && node-gyp configure --debug build",
9090
"recompile": "node-gyp configure build",

0 commit comments

Comments
 (0)