Skip to content

Commit d912082

Browse files
committed
Force debug to false when publishing
1 parent 4b8fecb commit d912082

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

gulpfile.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ gulp.task('build', function(cb) {
9191

9292
// Dedupe modules
9393
gulp.task('preinstall-addons', function (cb) {
94-
exec('./bin/codebox.js install --root=./.tmp/packages', cb);
94+
exec('./bin/codebox.js install --root=./.tmp/packages', {
95+
env: _.extend({}, process.env, {
96+
CODEBOX_DEBUG: debug
97+
})
98+
}, cb);
9599
});
96100

97101
// Copy everything to .tmp
@@ -118,6 +122,7 @@ gulp.task('copy-tmp', function() {
118122

119123
// Publish to NPM
120124
gulp.task('pre-publish', function(cb) {
125+
debug = false;
121126
runSequence('clean', 'build', 'copy-tmp', 'preinstall-addons', cb);
122127
});
123128
gulp.task('publish', ['pre-publish'], function(cb) {

0 commit comments

Comments
 (0)