From 310b657e32b8d930ece4b89d6b3f8e56e424397b Mon Sep 17 00:00:00 2001 From: Ayo Date: Fri, 17 Jul 2026 22:45:48 +0200 Subject: [PATCH] chore: use pnpm publish in publish-lib script --- scripts/publish-lib.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/publish-lib.js b/scripts/publish-lib.js index 971fe72..7f741ec 100644 --- a/scripts/publish-lib.js +++ b/scripts/publish-lib.js @@ -15,4 +15,7 @@ console.log('Copying apps/mnswpr/README.md into packages/mnswpr/ for the publish copyFileSync(resolve(root, 'apps/mnswpr/README.md'), resolve(libDir, 'README.md')) execSync('npm login') -execSync('npm publish', { cwd: libDir, stdio: 'inherit' }) +// Use `pnpm publish` (not `npm publish`) so `workspace:^` protocol deps are +// rewritten to real version ranges in the published package. `npm publish` +// leaves them verbatim, which produces uninstallable packages. +execSync('pnpm publish', { cwd: libDir, stdio: 'inherit' })