Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: properly check modules purge confirmation answer #8655

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

Silic0nS0ldier
Copy link
Contributor

@Silic0nS0ldier Silic0nS0ldier commented Oct 16, 2024

Return value is { question: boolean } (where question is the string given for argument name), not boolean.

Previously node_modules would be purged no matter what answer is given.

Discovered while investigating #8654

@zkochan
Copy link
Member

zkochan commented Oct 17, 2024

I have probably never noticed this because I was just killing the process instead of typing N.

@zkochan zkochan merged commit f9a095c into pnpm:main Oct 17, 2024
7 checks passed
renovate bot added a commit to mmkal/eslint-plugin-mmkal that referenced this pull request Oct 28, 2024
##### [v9.12.3](https://github.com/pnpm/pnpm/blob/HEAD/pnpm/CHANGELOG.md#9123)

##### Patch Changes

-   Don't purge `node_modules`, when typing "n" in the prompt that asks whether to remove `node_modules` before installation [#8655](pnpm/pnpm#8655).
-   Fix a bug causing pnpm to infinitely spawn itself when `manage-package-manager-versions=true` is set and the `.tools` directory is corrupt.
-   Use `crypto.hash`, when available, for improved performance [#8629](pnpm/pnpm#8629).
-   Fixed a race condition in temporary file creation in the store by including worker thread ID in filename. Previously, multiple worker threads could attempt to use the same temporary file. Temporary files now include both process ID and thread ID for uniqueness [#8703](pnpm/pnpm#8703).
-   All commands should read settings from the `package.json` at the root of the workspace [#8667](pnpm/pnpm#8667).
-   When `manage-package-manager-versions` is set to `true`, errors spawning a self-managed version of `pnpm` will now be shown (instead of being silent).
-   Pass the find command to npm, it is an alias for npm search
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.

3 participants