From e6b9c4542e21982660d1d26a0d64072a13770553 Mon Sep 17 00:00:00 2001 From: jack-mil <62065280+jack-mil@users.noreply.github.com> Date: Wed, 23 Apr 2025 20:52:50 -0400 Subject: [PATCH 1/2] pnpm: persist global data and add to path --- bucket/pnpm.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bucket/pnpm.json b/bucket/pnpm.json index e016140ede242..3e66de2b42a0a 100644 --- a/bucket/pnpm.json +++ b/bucket/pnpm.json @@ -3,6 +3,7 @@ "description": "A fast and disk space efficient Node package manager.", "homepage": "https://pnpm.io/", "license": "MIT", + "notes": "Do not run 'pnpm setup' if you want scoop to manage the installation", "architecture": { "64bit": { "url": "https://github.com/pnpm/pnpm/releases/download/v10.9.0/pnpm-win-x64.exe#/pnpm.exe", @@ -10,6 +11,11 @@ } }, "bin": "pnpm.exe", + "env_add_path": "pnpm_data", + "env_set": { + "PNPM_HOME": "$dir\\pnpm_data" + }, + "persist": "pnpm_data", "checkver": { "script": [ "# Using checkver script to check through all release tags", From c9f41868be459dd3f869734692f40ba83fdf9e9f Mon Sep 17 00:00:00 2001 From: jack-mil <62065280+jack-mil@users.noreply.github.com> Date: Tue, 17 Jun 2025 16:37:18 -0400 Subject: [PATCH 2/2] pnpm: add note on persistence --- bucket/pnpm.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bucket/pnpm.json b/bucket/pnpm.json index 3e66de2b42a0a..ec1c458ca4ee2 100644 --- a/bucket/pnpm.json +++ b/bucket/pnpm.json @@ -3,7 +3,13 @@ "description": "A fast and disk space efficient Node package manager.", "homepage": "https://pnpm.io/", "license": "MIT", - "notes": "Do not run 'pnpm setup' if you want scoop to manage the installation", + "notes": [ + "Scoop persists data since version 10.12.1. You may need to move data yourself.", + "Before: '$Env:LOCALAPPDATA\\pnpm\\global'", + "After : '$dir\\pnpm_data'", + "", + "Do not run 'pnpm setup' if you want scoop to manage the installation" + ], "architecture": { "64bit": { "url": "https://github.com/pnpm/pnpm/releases/download/v10.9.0/pnpm-win-x64.exe#/pnpm.exe",