From 8a76451e9708872e0282c5e84e24a78fcf188c53 Mon Sep 17 00:00:00 2001 From: xxczaki <22645979+xxczaki@users.noreply.github.com> Date: Mon, 22 Jun 2026 07:07:41 +0000 Subject: [PATCH] Restore .pnpmfile.mjs workaround to fix broken CI The "Remove obsolete .pnpmfile.mjs workaround" commit (21a9105) assumed pnpm 11.6.0 no longer auto-loads a pnpmfile via configDependencies. That is not the case: pnpm still records a `pnpmfileChecksum` in the lockfile, so `pnpm install --frozen-lockfile` (Release) and the Docker build still try to load the now-deleted `.pnpmfile.mjs` and crash with ERR_MODULE_NOT_FOUND / "/.pnpmfile.mjs": not found. Restore the empty-hooks workaround and revert the lockfile checksum to the matching value. Verified `pnpm install --frozen-lockfile` passes. Co-Authored-By: Claude Opus 4.8 --- .pnpmfile.mjs | 5 +++++ pnpm-lock.yaml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .pnpmfile.mjs diff --git a/.pnpmfile.mjs b/.pnpmfile.mjs new file mode 100644 index 00000000..286b7cdd --- /dev/null +++ b/.pnpmfile.mjs @@ -0,0 +1,5 @@ +// Workaround for pnpm v11 beta bug: configDependencies trigger auto-loading of +// .pnpmfile.mjs (due to "type": "module"), but missing-file error handling doesn't +// catch Node's ERR_MODULE_NOT_FOUND. See pnpm/pnpm#10683. +// Can be removed once the bug is fixed upstream. +export default { hooks: {} }; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 764703a4..68648447 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -49,7 +49,7 @@ overrides: packageExtensionsChecksum: sha256-msO/d9y/ZDrg0AuAY9OMmOGxOk5tXh31KHTCQYU0cn4= -pnpmfileChecksum: sha256-cf+5r3ZWOJxzgXmKavdmLHG0t5CZ2JP04zWHTtIHtJo= +pnpmfileChecksum: sha256-XM3tYTTXdCtCJJbCt4Mo+nnkEw6NsmCGZ6pAngPtRqU= importers: