Commit 15761c8
fix: filter npm-incompatible .npmrc properties in RushVersionSelector
When the Rush version selector uses npm to install a different version of
rush-lib, the .npmrc from the repo is synced but pnpm-specific properties
(like hoist, publish-branch, email, etc.) were not being filtered out.
This caused npm to emit "Unknown env config" and "Unknown project config"
warnings.
Add filterNpmIncompatibleProperties: true to the installPackageInDirectoryAsync
call in RushVersionSelector, matching the pattern already used in
InstallHelpers.ensureLocalPackageManagerAsync().
Fixes #5704
Co-authored-by: iclanton <5010588+iclanton@users.noreply.github.com>
Agent-Logs-Url: https://github.com/microsoft/rushstack/sessions/e3e81359-dd04-4186-979b-7a62e0a663e31 parent a568321 commit 15761c8
2 files changed
Lines changed: 5 additions & 2 deletions
File tree
- apps/rush/src
- common/changes/@microsoft/rush
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments