fix: listen to -d flag on cli upgrade

isekai-main
Julian Lam 2 years ago
parent 3f30056a71
commit fe249fa577

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

Loading…
Cancel
Save