fix: correctly pass dev flag to package installer

isekai-main
Julian Lam 2 years ago
parent 09cfd0bd57
commit 7672194c7c

@ -267,6 +267,10 @@ program
].join('\n')}`); ].join('\n')}`);
}) })
.action((scripts, options) => { .action((scripts, options) => {
if (program.opts().dev) {
process.env.NODE_ENV = 'development';
global.env = 'development';
}
require('./upgrade').upgrade(scripts.length ? scripts : true, options); require('./upgrade').upgrade(scripts.length ? scripts : true, options);
}); });

Loading…
Cancel
Save