{{ message }}
fix(@angular/cli): copy project config files to temp directory during ng update#32959
Open
ptu14 wants to merge 1 commit into
Open
fix(@angular/cli): copy project config files to temp directory during ng update#32959ptu14 wants to merge 1 commit into
ptu14 wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a copyConfigFromProject flag to the package manager descriptors to ensure that project-specific configuration files are correctly copied into temporary directories during package acquisition. This change improves support for private registries and custom configurations. I have identified two potential issues: first, the flag is missing from the modern Yarn descriptor, which may lead to inconsistencies; second, including pnpm-workspace.yaml in the configFiles list for pnpm might trigger unintended workspace-related behavior in the isolated temporary environment.
Sorry, something went wrong.
6aa2cd4 to
7613be7
Compare
April 8, 2026 14:19
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.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.
Fixes #27163
PR Checklist
Please check to confirm your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
During
ng update, the CLI installs a temporary version of itself in a system temp directory (e.g./tmp/angular-cli-packages-xxx). Since this directory is outside the project tree, npm/pnpm/yarn-classic cannot find the project's.npmrcand falls back to the user-level~/.npmrc. This causes registry settings defined in the project's.npmrcto be ignored.Issue Number: #27163
What is the new behavior?
Project configuration files (
.npmrc,.yarnrc,pnpm-workspace.yaml) are now copied to the temporary directory before runningnpm install. This reuses the existingcopyConfigFromProjectmechanism (previously only enabled for bun) for npm, pnpm, and yarn-classic.Does this PR introduce a breaking change?