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

pnpm support - periodic store pruning #1231

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

colincasey
Copy link
Contributor

These changes build on top of #1224. A counter is introduced which is decremented on every build. When the counter=0 then pnpm store prune will be executed and the counter will be reset.

@colincasey colincasey added the skip changelog Changelog entry is not required - Skips changelog check label Mar 28, 2024
@colincasey colincasey self-assigned this Mar 28, 2024
@colincasey colincasey mentioned this pull request Mar 28, 2024
@colincasey colincasey requested review from a team and removed request for a team March 28, 2024 19:09
@colincasey colincasey force-pushed the pnpm_support_periodic_store_pruning branch from 91a7bcf to 0e1d70f Compare April 2, 2024 12:29
@colincasey colincasey force-pushed the pnpm_support branch 2 times, most recently from 26f9b42 to c0f18d0 Compare April 4, 2024 16:01
@colincasey colincasey force-pushed the pnpm_support_periodic_store_pruning branch from 0e1d70f to a0586c3 Compare April 4, 2024 16:07
@colincasey colincasey marked this pull request as ready for review April 4, 2024 16:09
@colincasey colincasey requested a review from a team as a code owner April 4, 2024 16:09
@colincasey colincasey merged commit 7e73f1a into pnpm_support Apr 4, 2024
9 checks passed
@colincasey colincasey deleted the pnpm_support_periodic_store_pruning branch April 4, 2024 16:37
@edmorley edmorley removed the request for review from a team April 8, 2024 09:27
colincasey added a commit that referenced this pull request Apr 29, 2024
colincasey added a commit that referenced this pull request Apr 29, 2024
* pnpm support

These changes build on top of [existing corepack support](#1222) to allow `pnpm` to be installed via [Corepack](https://nodejs.org/docs/latest/api/corepack.html).

The build process has also been modified use the `pnpm` binary at the following stages:
- installing dependencies
- running build scripts:
  - `heroku-prebuild`
  - `build` (or `heroku-postbuild`)
  - `heroku-cleanup`
- pruning dev dependencies

* Prune the pnpm store periodically (#1231)

* Multiple lockfiles error (#1228)

These changes build on top of [existing pnpm support](#1224) and modify the failure message shown when multiple lockfiles are detected to now include pnpm.

* Add pnpm caching (#1225)

These changes build on top of [existing pnpm support](#1224) to allow `pnpm` dependencies to be saved and restored between builds.

* pnpm support (default version) (#1226)

These changes build on top of [existing pnpm support](#1224) to default to the `latest` version when it appears that pnpm should be used but there is no `engines.pnpm` or `packageManager` specified in `package.json`.

* pnpm support engines (#1227)

These changes build on top of [existing pnpm support](#1224) to use the version specified by the `engines.pnpm` field in `package.json`.

* Only prune when it's safe to do so (#1238)

* Update CHANGELOG.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip changelog Changelog entry is not required - Skips changelog check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants