Skip to content

Update deepinstall.js to fix pnpm install#778

Merged
aman-v-singh merged 1 commit intopostmanlabs:developfrom
ckaznocha:develop
Feb 17, 2025
Merged

Update deepinstall.js to fix pnpm install#778
aman-v-singh merged 1 commit intopostmanlabs:developfrom
ckaznocha:develop

Conversation

@ckaznocha
Copy link
Contributor

pnpm install from a subproject in a project with a pnpm-workspace.yaml installs the workspaces' dependencies, not the subproject even if that subproject is not part of the workspace. That is causing the postinstall script to hang in some cases. This change tells pnpm to ignore the parent workspace making it work as expected.

Closes #772

See: pnpm/pnpm#2412

@barak-bem
Copy link

@aman-v-singh could I would very much appreciate if this PR could be merged! I'm running into this issue myself, and preventing post install scripts from being run automatically doesn't feel optimal

@tata35tg
Copy link

tata35tg commented Feb 8, 2025 via email

@aman-v-singh aman-v-singh merged commit d3d4a5f into postmanlabs:develop Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

post-install script hangs when using pnpm in a project with * as package descriptor

4 participants