From 83fabaf29187eb614d1168f11f5663c82d576540 Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Tue, 15 Jul 2025 15:09:00 +0200 Subject: [PATCH] doc: adjust pnpm.fetchDeps parameter order Signed-off-by: Sefa Eyeoglu (cherry picked from commit e9d0c4af416f8a1847d87c80d62d72204879ce7e) --- doc/languages-frameworks/javascript.section.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/languages-frameworks/javascript.section.md b/doc/languages-frameworks/javascript.section.md index 319d076204a7..3b73859da6fe 100644 --- a/doc/languages-frameworks/javascript.section.md +++ b/doc/languages-frameworks/javascript.section.md @@ -443,8 +443,8 @@ stdenv.mkDerivation (finalAttrs: { pnpmDeps = pnpm.fetchDeps { inherit (finalAttrs) pname version src; - hash = "..."; fetcherVersion = 2; + hash = "..."; }; }) ``` @@ -568,8 +568,8 @@ This is the version of the output of `pnpm.fetchDeps`, if you haven't set it alr # ... pnpmDeps = pnpm.fetchDeps { # ... - hash = "..."; # you can use your already set hash here fetcherVersion = 1; + hash = "..."; # you can use your already set hash here }; } ``` @@ -581,8 +581,8 @@ After upgrading to a newer `fetcherVersion`, you need to regenerate the hash: # ... pnpmDeps = pnpm.fetchDeps { # ... - hash = "..."; # clear this hash and generate a new one fetcherVersion = 2; + hash = "..."; # clear this hash and generate a new one }; } ```