-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: init
command create file add packageManager
field
#9069
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
Merged
zkochan
merged 4 commits into
pnpm:main
from
btea:feat/init-command-add-packageManager-field
Feb 11, 2025
Merged
feat: init
command create file add packageManager
field
#9069
zkochan
merged 4 commits into
pnpm:main
from
btea:feat/init-command-add-packageManager-field
Feb 11, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zkochan
reviewed
Feb 9, 2025
zkochan
approved these changes
Feb 11, 2025
Not everyone will want this. We need a setting to disable it. |
Maybe pass the options via the cli and add the fields if the arguments are specified. |
renovate bot
added a commit
to mmkal/expect-type
that referenced
this pull request
Feb 14, 2025
##### [v10.4.0](https://github.com/pnpm/pnpm/blob/HEAD/pnpm/CHANGELOG.md#1040) ##### Minor Changes - `pnpm approve-builds --global` works now for allowing dependencies of globally installed packages to run postinstall scripts. - The `pnpm add` command now supports a new flag, `--allow-build`, which allows building the specified dependencies. For instance, if you want to install a package called `bundle` that has `esbuild` as a dependency and want to allow `esbuild` to run postinstall scripts, you can run: pnpm --allow-build=esbuild add bundle This will run `esbuild`'s postinstall script and also add it to the `pnpm.onlyBuiltDependencies` field of `package.json`. So, `esbuild` will always be allowed to run its scripts in the future. Related PR: [#9086](pnpm/pnpm#9086). - The `pnpm init` command adds a `packageManager` field with the current version of pnpm CLI [#9069](pnpm/pnpm#9069). To disable this behaviour, set the `init-package-manager` setting to `false`. ##### Patch Changes - `pnpm approve-builds` should work after two consecutive `pnpm install` runs [#9083](pnpm/pnpm#9083). - Fix instruction for updating pnpm with corepack [#9101](pnpm/pnpm#9101). - The pnpm version specified by `packageManager` cannot start with `v`.
jelmore1674
pushed a commit
to jelmore1674/build-changelog
that referenced
this pull request
Mar 19, 2025
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [pnpm](https://pnpm.io) ([source](https://github.com/pnpm/pnpm/tree/HEAD/pnpm)) | packageManager | minor | [`10.3.0+sha512.ee592eda8815a8a293c206bb0917c4bb0ff274c50def7cbc17be05ec641fc2d1b02490ce660061356bd0d126a4d7eb2ec8830e6959fb8a447571c631d5a2442d` -> `10.4.0`](https://renovatebot.com/diffs/npm/pnpm/10.3.0/10.4.0) | --- ### Release Notes <details> <summary>pnpm/pnpm (pnpm)</summary> ### [`v10.4.0`](https://github.com/pnpm/pnpm/blob/HEAD/pnpm/CHANGELOG.md#1040) [Compare Source](pnpm/pnpm@v10.3.0...v10.4.0) ##### Minor Changes - `pnpm approve-builds --global` works now for allowing dependencies of globally installed packages to run postinstall scripts. - The `pnpm add` command now supports a new flag, `--allow-build`, which allows building the specified dependencies. For instance, if you want to install a package called `bundle` that has `esbuild` as a dependency and want to allow `esbuild` to run postinstall scripts, you can run: pnpm --allow-build=esbuild add bundle This will run `esbuild`'s postinstall script and also add it to the `pnpm.onlyBuiltDependencies` field of `package.json`. So, `esbuild` will always be allowed to run its scripts in the future. Related PR: [#​9086](pnpm/pnpm#9086). - The `pnpm init` command adds a `packageManager` field with the current version of pnpm CLI [#​9069](pnpm/pnpm#9069). To disable this behaviour, set the `init-package-manager` setting to `false`. ##### Patch Changes - `pnpm approve-builds` should work after two consecutive `pnpm install` runs [#​9083](pnpm/pnpm#9083). - Fix instruction for updating pnpm with corepack [#​9101](pnpm/pnpm#9101). - The pnpm version specified by `packageManager` cannot start with `v`. </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNjkuMyIsInVwZGF0ZWRJblZlciI6IjM5LjE2OS4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Reviewed-on: https://gitea.justinelmore.dev/jelmore1674/build-changelog/pulls/92 Co-authored-by: Renovate Bot <renovate-bot@forgejo.justinelmore.dev> Co-committed-by: Renovate Bot <renovate-bot@forgejo.justinelmore.dev>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
close #9068