From fe249fa57761fc3779d0869effde2b05b5682503 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 16 Sep 2022 11:44:34 -0400 Subject: [PATCH] fix: listen to -d flag on cli upgrade --- src/cli/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cli/index.js b/src/cli/index.js index 5c3c01fd88..81ad5c0b37 100644 --- a/src/cli/index.js +++ b/src/cli/index.js @@ -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); });