From 7672194c7ce513817cf5971a5b5f11017d380268 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 17 Oct 2022 16:13:04 -0400 Subject: [PATCH] fix: correctly pass dev flag to package installer --- src/cli/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cli/index.js b/src/cli/index.js index 86bfc127b4..b1ce151f4c 100644 --- a/src/cli/index.js +++ b/src/cli/index.js @@ -267,6 +267,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); });