You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lockfile v2 mostly just has a bit of extra metadata and all dependencies
are hoisted to the top-level with path-specific keys in a new lock value
called "packages". This update emits enough of the format that NPM v7+
seem to be happy enough with it and does not try to rewrite it and cause
ENOTCACHED errors with the sandbox.
As of NPM v7+, it no longer links bins for the top-level project
automatically unless a global install is selected[1][2]. Given a global
install would cause more problems than it would solve, I added a simple
script to perform the linking ourselves and instructed `npm install` to
never link them for consistency.
Closessvanderburg#236, svanderburg#293, svanderburg#294
[1]: npm/cli@e46400c#diff-24c01909dabbe2fc000fb5b43d14b511fb335b2f0c2e8e7a671f7d567a33d577R17-R18
[2]: npm/cli#4308
Copy file name to clipboardExpand all lines: bin/node2nix.js
+14-4Lines changed: 14 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ var switches = [
28
28
['-18','--nodejs-18','Provides all settings to generate expression for usage with Node.js 18.x (default is: nodejs-14_x)'],
29
29
['--supplement-input FILE','A supplement package JSON file that are passed as build inputs to all packages defined in the input JSON file'],
30
30
['--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)'],
31
-
['--include-peer-dependencies','Specifies whether to include peer dependencies. In npm 2.x, this is the default. (false by default)'],
31
+
['--include-peer-dependencies','Specifies whether to include peer dependencies. In npm 2.x, this is the default. (true by default for Node.js 16+)'],
32
32
['--no-flatten','Simulate pre-npm 3.x isolated dependency structure. (false by default)'],
33
33
['--pkg-name NAME','Specifies the name of the Node.js package to use from Nixpkgs (defaults to: nodejs)'],
34
34
['--registry URL','URL referring to the NPM packages registry. It defaults to the official NPM one, but can be overridden to support private registries'],
@@ -47,7 +47,7 @@ var parser = new optparse.OptionParser(switches);
0 commit comments