Skip to content

Commit

Permalink
Update prod dependencies and remove 'node-environment-flags' (#4214)
Browse files Browse the repository at this point in the history
  • Loading branch information
juergba committed Apr 4, 2020
1 parent c5fc2be commit 54475eb
Show file tree
Hide file tree
Showing 4 changed files with 621 additions and 614 deletions.
4 changes: 2 additions & 2 deletions lib/cli/node-flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @module
*/

const nodeFlags = require('node-environment-flags');
const nodeFlags = process.allowedNodeEnvironmentFlags;
const unparse = require('yargs-unparser');

/**
Expand Down Expand Up @@ -48,7 +48,7 @@ exports.isNodeFlag = (flag, bareword = true) => {
// check actual node flags from `process.allowedNodeEnvironmentFlags`,
// then historical support for various V8 and non-`NODE_OPTIONS` flags
// and also any V8 flags with `--v8-` prefix
(nodeFlags.has(flag) ||
((nodeFlags && nodeFlags.has(flag)) ||
debugFlags.has(flag) ||
/(?:preserve-symlinks(?:-main)?|harmony(?:[_-]|$)|(?:trace[_-].+$)|gc(?:[_-]global)?$|es[_-]staging$|use[_-]strict$|v8[_-](?!options).+?$)/.test(
flag
Expand Down

0 comments on commit 54475eb

Please sign in to comment.