Commit Graph
90 Commits
Author SHA1 Message Date
Sefa Eyeoglu d925565179 fetchPnpmDeps,pnpmConfigHook: move to top-level attribute
move pnpm.{fetchDeps,configHook} to fetchPnpmDeps and pnpmConfigHook
respectively. Also adds aliases to the former package-level attributes.

Additionally, pnpmConfigHook does not propagate pnpm anymore, to make
changing pnpm versions easier.

This brings pnpm in line with the other Node.js/JavaScript tooling in
nixpkgs.

This doesn't cause any rebuilds.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2025-12-17 23:43:59 +01:00
Gutyina Gergő 1f37f08091 pnpm.fetchDeps: output a tarball from fetcherVersion 3 2025-12-14 19:15:15 +01:00
Gergő GutyinaandGitHub 630120119a doc: fix example (#435473) 2025-12-07 11:46:03 +00:00
Tomodachi94 7bf3aa9d0d doc/javascript: move nodePackages information back to README.md
Adding new packages here is discouraged, for reasons enumerated in
https://github.com/NixOS/nixpkgs/issues/229475, so let's move this
(mostly developer-facing) documentation back into its original location
in pkgs/development/node-packages/README.md.
2025-11-29 20:34:41 -08:00
Yiyu Zhou eafa2f536f doc: fix examples 2025-10-19 23:15:58 -07:00
K900 4999ae577c Merge remote-tracking branch 'origin/master' into staging-next 2025-09-30 21:47:55 +03:00
NAHO 854c5a5460 doc: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd --type file . doc --exec-batch sed --in-place --regexp-extended "
      s/\<builtins\.($(
        printf '%s\n' "${builtins[@]}" |
          paste --delimiter '|' --serial -
      ))\>/\1/g
    "

    nix fmt
2025-09-30 09:02:03 +02:00
nixpkgs-ci[bot]andGitHub eea9839c6e Merge staging-next into staging 2025-09-14 00:17:55 +00:00
Ben Siraphob 1e82a2f358 doc: fix typos 2025-09-09 13:14:34 +07:00
polyfloyd 3eea28e982 doc/javascript: Warn against the use of mkYarnPackage 2025-08-29 13:12:56 +02:00
Ben Siraphob cc5b731ed3 doc: fix typos 2025-08-27 11:46:26 -07:00
Wolfgang Walther 62fe016519 treewide: run treefmt with mdcr/nixfmt 2025-07-24 13:52:31 +02:00
Sefa Eyeoglu e9d0c4af41 doc: adjust pnpm.fetchDeps parameter order
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2025-07-15 15:09:16 +02:00
Gutyina GergőandOliver Breitwieser 71e3980f18 pnpm.fetchDeps: ensure consistent permissions for fetcherVersion >=2
Co-authored-by: Oliver Breitwieser <oliver@breitwieser.eu>
2025-07-14 11:51:38 +02:00
Gutyina Gergő fd61e1c200 pnpm.fetchDeps: introduce versioning 2025-07-14 11:50:27 +02:00
Johannes KirschbauerandGitHub dbd0345e71 Revert "Feat/build deno package" 2025-06-17 18:01:14 +02:00
aMOPel 32a9eaae70 doc: added more info and fixed a bug 2025-06-06 07:51:39 +02:00
aMOPel 9db1e30da8 fix for the readme cli build test 2025-06-05 15:01:33 +02:00
aMOPel 9dae270449 minor fixes 2025-06-05 13:56:08 +02:00
aMOPel 02b2beed9e added test case and improved api 2025-06-03 17:39:55 +02:00
aMOPel 2335220e54 nits 2025-06-03 12:49:35 +02:00
aMOPel 2857128ddd doc: refactored argument documention by using definition lists 2025-06-03 12:40:50 +02:00
c88d10c806 Update doc/languages-frameworks/javascript.section.md
Co-authored-by: Valentin Gagarin <valentin@gagarin.work>
2025-06-03 12:40:50 +02:00
0ffa7b88a2 Update doc/languages-frameworks/javascript.section.md
Co-authored-by: Valentin Gagarin <valentin@gagarin.work>
2025-06-03 12:40:50 +02:00
287b94f279 Update doc/languages-frameworks/javascript.section.md
Co-authored-by: Valentin Gagarin <valentin@gagarin.work>
2025-06-03 12:40:50 +02:00
d1e5782bba Update doc/languages-frameworks/javascript.section.md
Co-authored-by: Valentin Gagarin <valentin@gagarin.work>
2025-06-03 12:40:50 +02:00
aMOPel 486c503430 doc: added docs for buildDenoPackage 2025-06-03 12:39:39 +02:00
Niklas Hambüchen ee6c2bd2eb doc: Fix missing pre/post hooks everywhere 2025-05-24 13:22:41 +00:00
adisbladisandGitHub 4166518a86 doc/importNpmLock.buildNodeModules: Add note regarding package-lock-only (#393699) 2025-05-02 20:50:31 +02:00
Florian KlinkandYureka b25eeeb6d8 doc: document Yarn v3/v4 infrastructure
Move the existing `yarnConfigHook`, `yarnBuildHook` and
`yarnInstallHook` documentation below a Yarn v1 section.

Also move the documentation for the deprecated `yarn2nix` there, which
is Yarn v1 only.

Co-Authored-By: Yureka <yureka@cyberchaos.dev>
2025-04-23 17:25:20 +03:00
Pol Dellaiera 3218a4204f doc: do not reuse pname 2025-04-21 07:02:49 +02:00
Pol Dellaiera ac04a5c492 doc: replace rev with tag 2025-04-21 07:02:49 +02:00
Pol Dellaiera b4515ff6c2 doc: use finalAttrs pattern 2025-04-21 07:02:49 +02:00
Pol Dellaiera 47f000d991 doc: add missing phase hooks 2025-04-21 07:02:49 +02:00
Pol Dellaiera 540ddbcf2f doc: use writableTmpDirAsHomeHook 2025-04-21 07:02:46 +02:00
Pol DellaieraandValentin Gagarin bcea0cf344 doc: update Nix code snippets format
Command: `mdcr --config doc/tests/mdcr-config.toml doc/`
2025-04-17 01:30:34 +02:00
Pol DellaieraandValentin Gagarin 5d979e79ce doc: fix various nix snippets 2025-04-17 01:30:34 +02:00
Winter a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
Pol Dellaiera 65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
adisbladis 6900384c1b doc/importNpmLock.buildNodeModules: Add note regarding package-lock-only
When using `buildNodeModules` to create `node_modules` commands like `npm install` & `npm add` that writes packages & executables needs to be used with `--package-lock-only`.
2025-03-28 11:12:15 +01:00
Pyrox 09cec0f560 pnpm.fetchDeps: pnpmWorkspace -> pnpmWorkspaces 2024-10-24 15:37:30 -04:00
lelgenio ab4dc6ca78 doc/javascript: fix example usage of yarn hooks 2024-09-28 20:07:11 -03:00
71f01ce1fc Doc/importNpmLock: general improvements (#340019)
Co-authored-by: Valentin Gagarin <valentin@gagarin.work>
2024-09-07 07:59:02 +02:00
lelgenio 7783e118af yarnInstallHook: init 2024-09-04 11:15:47 -03:00
adisbladisandPhilip Taron 9c7ff7277c importNpmLock.buildNodeModules: init
`importNpmLock.buildNodeModules` returns a derivation with a pre-built `node_modules` directory, as imported by `importNpmLock`.
This is to be used together with `importNpmLock.hooks.linkNodeModulesHook` to facilitate `nix-shell`/`nix develop` based development workflows:

```nix
pkgs.mkShell {
  packages = [
    importNpmLock.hooks.linkNodeModulesHook
    nodejs
  ];

  npmDeps = importNpmLock.buildNodeModules {
    npmRoot = ./.;
    inherit nodejs;
  };
}
```
will create a development shell where a `node_modules` directory is created & packages symlinked to the Nix store when activated.

This code is adapted from https://github.com/adisbladis/buildNodeModules
2024-08-29 06:12:07 -07:00
PyroxandDoron Behar 875c9f044f pnpm.fetchDeps: Add workspaces support and support for custom pnpm configuration commands
Solves #316908
2024-08-05 18:36:54 +03:00
Peder Bergebakken Sundt 99dec1f6b0 treewide: fix doc typos
Done with `fd \\\.md$ . --type f -x typos --write-changes`
2024-07-26 00:55:13 +02:00
Alexis Hildebrandt ab42ca141a doc: Remove indefinite article and ending period from example meta.description
so that meta.description examples shown in the documentation
align with recommendations given in the "Meta attributes" section
in pkgs/README.md.

The changes were made with the following commands:
nix run nixpkgs#silver-searcher -- -l0 'description\s*=\s*"([Aa]n?|[Tt]he)\s' doc \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee '/description/s/"([Aa]n?|[Tt]he)\s(.)/"\U\2/'
nix run nixpkgs#silver-searcher -- -l0 'description\s*=\s*".*\."' doc \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee '/description/s/\."/"/'
2024-07-20 09:18:42 +02:00
Doron Behar ee7cfec5aa doc/javascript: document yarn{Config,Build}Hook 2024-07-10 09:39:03 +03:00
Doron Behar c704c02956 doc/javascript: pnpm: mention lack of monorepos/workspaces support 2024-06-03 17:09:22 +03:00