+31
doc/languages-frameworks/javascript.section.md
+31
doc/languages-frameworks/javascript.section.md
···It returns a derivation with all `package-lock.json` dependencies downloaded into `$out/`, usable as an npm cache.This package puts the corepack wrappers for pnpm and yarn in your PATH, and they will honor the `packageManager` setting in the `package.json`.
···It returns a derivation with all `package-lock.json` dependencies downloaded into `$out/`, usable as an npm cache.+It returns a derivation with a patched `package.json` & `package-lock.json` with all dependencies resolved to Nix store paths.+This function is analogous to using `fetchNpmDeps`, but instead of specifying `hash` it uses metadata from `package.json` & `package-lock.json`.+Note that `npmHooks.npmConfigHook` cannot be used with `importNpmLock`. You will instead need to use `importNpmLock.npmConfigHook`:This package puts the corepack wrappers for pnpm and yarn in your PATH, and they will honor the `packageManager` setting in the `package.json`.
+14
-3
pkgs/build-support/node/build-npm-package/default.nix
+14
-3
pkgs/build-support/node/build-npm-package/default.nix
······
······
+134
pkgs/build-support/node/import-npm-lock/default.nix
+134
pkgs/build-support/node/import-npm-lock/default.nix
···
···+# Substitute the constraint with the version of the dependency from the top-level of package-lock.+mapPackageDependencies = mapAttrs (name: _: packageLock'.packages.${"node_modules/${name}"}.resolved);
+52
pkgs/build-support/node/import-npm-lock/hooks/canonicalize-symlinks.js
+52
pkgs/build-support/node/import-npm-lock/hooks/canonicalize-symlinks.js
···
···
+13
pkgs/build-support/node/import-npm-lock/hooks/default.nix
+13
pkgs/build-support/node/import-npm-lock/hooks/default.nix
···
···
+70
pkgs/build-support/node/import-npm-lock/hooks/npm-config-hook.sh
+70
pkgs/build-support/node/import-npm-lock/hooks/npm-config-hook.sh
···
···+if ! npm install --ignore-scripts $npmInstallFlags "${npmInstallFlagsArray[@]}" $npmFlags "${npmFlagsArray[@]}"; then
+2
pkgs/top-level/all-packages.nix
+2
pkgs/top-level/all-packages.nix
···nodePackages_latest = dontRecurseIntoAttrs nodejs_latest.pkgs // { __attrsFailEvaluation = true; };
···nodePackages_latest = dontRecurseIntoAttrs nodejs_latest.pkgs // { __attrsFailEvaluation = true; };