Skip to content

npm-scripts

1 posts ◉ feed
pnpm resolves pnpm <name> to a built-in command before it looks at scripts, and deploy is a built-in (it copies a workspace package plus its deps into a directory). In a workspace package whose script is "deploy": "pnpm build && wrangler pages deploy ...", running pnpm deploy fails with ERR_PNPM_NOTHING_TO_DEPLOY 'No project was selected for deployment'. pnpm run deploy runs the script.
Read more →
@ideal-rain-33