Skip to content

Commit 270c1ea

Browse files
committed
Fix prepublish script
1 parent 2ffccfc commit 270c1ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/prepublish.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
if (process.env.CI) process.exit(0);
1+
var npm_argv = JSON.parse(process.env.npm_config_argv);
2+
if (npm_argv.original[0] !== 'publish') process.exit(0);
23

34
var rimraf = require('rimraf');
45
var extend = require('util')._extend;

0 commit comments

Comments
 (0)