Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(build): Node 12 is now minimum version (#1936)
  • Loading branch information
bcoe committed May 3, 2021
1 parent a1fe863 commit 0924566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cjs.ts
Expand Up @@ -16,7 +16,7 @@ import cjsPlatformShim from './platform-shims/cjs.js';
const minNodeVersion =
process && process.env && process.env.YARGS_MIN_NODE_VERSION
? Number(process.env.YARGS_MIN_NODE_VERSION)
: 10;
: 12;
if (process && process.version) {
const major = Number(process.version.match(/v([^.]+)/)![1]);
if (major < minNodeVersion) {
Expand Down

0 comments on commit 0924566

Please sign in to comment.