Skip to content

Commit

Permalink
Add Node.js 16.x option
Browse files Browse the repository at this point in the history
  • Loading branch information
svanderburg committed Oct 20, 2021
1 parent 0a81cf4 commit e73c616
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/node2nix.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ var switches = [
['-12', '--nodejs-12', 'Provides all settings to generate expression for usage with Node.js 12.x (default is: Node.js 12.x)'],
['-13', '--nodejs-13', 'Provides all settings to generate expression for usage with Node.js 13.x (default is: Node.js 12.x)'],
['-14', '--nodejs-14', 'Provides all settings to generate expression for usage with Node.js 14.x (default is: Node.js 12.x)'],
['-16', '--nodejs-16', 'Provides all settings to generate expression for usage with Node.js 16.x (default is: Node.js 12.x)'],
['--supplement-input FILE', 'A supplement package JSON file that are passed as build inputs to all packages defined in the input JSON file'],
['--supplement-output FILE', 'Path to a Nix expression representing a supplementing set of Nix packages provided as inputs to a project (defaults to: supplement.nix)'],
['--include-peer-dependencies', 'Specifies whether to include peer dependencies. In npm 2.x, this is the default. (false by default)'],
Expand Down Expand Up @@ -150,6 +151,12 @@ parser.on('nodejs-14', function(arg, value) {
bypassCache = true;
});

parser.on('nodejs-16', function(arg, value) {
flatten = true;
nodePackage = "nodejs-16_x";
bypassCache = true;
});

parser.on('include-peer-dependencies', function(arg, value) {
includePeerDependencies = true;
});
Expand Down

0 comments on commit e73c616

Please sign in to comment.