Files
pnpm/pkg-manager/get-context
Steven Petryk 19c4b4f973 fix(get-context): avoid excess purge prompts (#7639)
* fix(get-context): avoid excess purge prompts

pnpm sometimes needs to purge modules folders (node_modules) when
certain configuration changes (in other words, when it needs to start
from scratch).

This prompt, problematically, was getting triggered asynchronously for
each importer in the workspace that needed a purge, which would
sometimes lead to gargantuan prompts instead of one consolidated prompt.

The fix is to queue up which importers need a purge, then fire the
prompter all at once.

Closes #7320

* fix: reuse ImporterToPurge type

* refactor: apply suggestions from code review

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2024-02-12 19:52:18 +01:00
..
2024-01-22 10:10:27 +01:00
2024-01-22 10:14:47 +01:00

@pnpm/get-context

Gets context information about a project

npm version

Installation

pnpm add @pnpm/get-context

License

MIT