about summary refs log tree commit diff
path: root/pkgs/build-support/node
AgeCommit message (Collapse)AuthorFilesLines
2023-02-20Merge master into staging-nextgithub-actions[bot]1-2/+2
2023-02-20prefetch-npm-deps: add nix to PATHYureka1-2/+2
Fixes "No such file or directory" error when running prefetch-npm-deps in its default mode (print hashes, for update scripts etc), in an environment that doesn't have a `nix` binary (for `nix hash`).
2023-02-07treewide: makeSetupHook deps -> propagatedBuildInputsArtturin1-1/+1
2022-12-22treewide: fix error: attribute 'runtimeShell' missingArtturin1-1/+1
2022-12-19npmHooks.npmBuildHook: fix diagnosticWinter1-1/+1
Single quotes must be used when using graves in a quote, else Bash will interpret it as a command to run. Thanks to Dimitri for catching this (https://github.com/NixOS/nixpkgs/commit/8e651111b77e590a933d525563daa2a3e14bb0e2#commitcomment-92100762).
2022-12-19npmHooks.npmConfigHook: make diagnostic match prefetch-npm-depsLily Foster1-1/+1
This updates the diagnostic message for a missing package-lock.json to match what fetchNpmDeps currently says
2022-11-25npmHooks.npmInstallHook: pass --no-save to pruneWinter1-1/+1
2022-11-25buildNpmPackage: forward pre/postPatch to fetchNpmDepsSandro Jäckel1-1/+3
2022-11-25fetchNpmDeps: allow package-json.lock symlinks, update hintSandro1-2/+2
2022-11-23prefetch-npm-deps: fix hash stabilityLily Foster2-3/+3
GNU tar will apparently silently include mtime of files if --mtime is passed with an unrecognized date format. This led to hash instability from those mtimes and this fixes it to force all mtimes to epoch timestamp 0.
2022-11-21prefetch-npm-deps: repack hosted git depsWinter5-37/+205
Previously, we stored the tarballs from the hosted Git providers directly in the cache. However, as we've seen with `fetchFromGitHub` etc, these files may change subtly. Given this, this commit repacks the dependencies before storing them in the cache.
2022-11-21prefetch-npm-deps: deduplicate dependencies when parsing lockfileWinter3-45/+56
A `package-lock.json` file can contain multiple instances of the same dependency, which caused unnecessary downloads and duplicate index entries in the generated cache.
2022-11-21prefetch-npm-deps: move tests to separate fileWinter2-92/+92
2022-11-21npmHooks.npmConfigHook: sugget specifying legacy peer deps option for all ↵Winter1-1/+1
commands
2022-11-21npmHooks.npmInstallHook: pass install flags to pruneWinter2-2/+2
2022-11-21npmHooks.npmConfigHook: add diagnostic for when dependencies aren't providedWinter1-0/+9
2022-11-21npmHooks.npmConfigHook: add some missing quotes around variable assignmentsWinter1-3/+3
2022-11-21npmHooks.npmConfigHook: also patch shebangs after rebuildingWinter1-0/+2
2022-11-21npmHooks.npmBuildHook: mention dontNpmBuild if script fails to runWinter1-0/+1
2022-11-21prefetch-npm-deps: add etherpad-lite v1.8.18 as a testWinter1-0/+12
2022-11-21prefetch-npm-deps: skip bundled dependencies in v1 lockfilesWinter1-0/+10
2022-11-21prefetch-npm-deps: add support for hosted git shorthandsWinter1-6/+82
2022-11-21prefetch-npm-deps: add support for link dependencies in v2 lockfilesWinter2-13/+41
2022-11-19splice.nix: start deprecating nativeDrv and crossDrvArtturin1-5/+4
2022-11-09buildNpmPackage: initWinter11-0/+1567
2022-10-02fetchYarnDeps: support passing src attribute (#193047)Yureka1-7/+12
2022-06-15fetchYarnDeps: support hash in pkg.integrity (#177255)Chuang Zhu1-2/+6
2022-05-05testers.invalidateFetcherByDrvHash: Move from top-levelRobert Hensing1-4/+4
2021-12-30fetchYarnDeps: support more url typesYureka1-13/+29
2021-10-29fetchYarnDeps: use fakeSha256 if no hash is givenYureka1-1/+1
2021-10-29prefetch-yarn-deps: ignore file: dependenciesYureka1-0/+2
2021-10-29prefetch-yarn-deps: support git:// dependenciesYureka1-6/+17
2021-10-23prefetch-yarn-deps: add nix dependency (#142664)Yuka1-3/+3
fixes "Error: spawn nix-hash ENOENT"
2021-10-20fetchYarnDeps, mkYarnModules: verify the FOD hash is up-to-dateYureka1-5/+6
2021-10-20prefetch-yarn-deps, fetchYarnDeps: initYureka6-0/+280