postmanlabs / postman-code-generators

Common repository for all code generators shipped with Postman
Apache License 2.0
996 stars 351 forks source link

Update deepinstall.js to fix pnpm install #778

Open ckaznocha opened 1 day ago

ckaznocha commented 1 day ago

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: https://github.com/pnpm/pnpm/issues/2412