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

Support fallback syntax in .npmrc file #5030

Merged

Conversation

fzxen
Copy link
Contributor

@fzxen fzxen commented Dec 4, 2024

Summary

Fixes #5029

Details

I added a regular expression which copies from @pnpm/config.env-replace/env-replace.ts for identifying fallback syntax.

How it was tested

I added some test cases in the libraries/rush-lib/src/utilities/test/npmrcUtilities.test.ts file to ensure the rush work goes as expected.

@fzxen fzxen force-pushed the feature/support_fallback_syntax_in_npmrc branch from 64956bc to 0a5655e Compare December 4, 2024 13:22
@fzxen fzxen marked this pull request as ready for review December 5, 2024 02:04
@fzxen fzxen force-pushed the feature/support_fallback_syntax_in_npmrc branch 2 times, most recently from 6395103 to 32020cc Compare December 9, 2024 11:56
@fzxen fzxen force-pushed the feature/support_fallback_syntax_in_npmrc branch from 32020cc to d7aa2ed Compare December 10, 2024 06:25
@iclanton iclanton enabled auto-merge (squash) December 10, 2024 20:08
@iclanton iclanton disabled auto-merge December 10, 2024 20:18
@iclanton iclanton enabled auto-merge (squash) December 10, 2024 21:10
@iclanton iclanton merged commit ae62698 into microsoft:main Dec 10, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

[rush] Rush should support the ${NAME:-fallback} syntax in .npmrc
3 participants