Skip to content

Commit a1c50ad

Browse files
committed
upgrade node-environment-flags (support for --port)
1 parent 67d8477 commit a1c50ad

File tree

4 files changed

+270
-238
lines changed

4 files changed

+270
-238
lines changed

lib/cli/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ module.exports.loadPkgRc = loadPkgRc;
261261
const loadOptions = (argv = []) => {
262262
// save node-specific args having
263263
const nodeArgOptionalValues = new Map(
264-
argv
264+
(Array.isArray(argv) ? argv : argv.split(' '))
265265
.filter(arg => arg.includes('='))
266266
.map(arg => arg.substring(2).split('='))
267267
);

0 commit comments

Comments
 (0)