chore: move pnpm-specific settings from .npmrc to .npmrc.yml#1857
Open
hobostay wants to merge 1 commit into
Open
chore: move pnpm-specific settings from .npmrc to .npmrc.yml#1857hobostay wants to merge 1 commit into
hobostay wants to merge 1 commit into
Conversation
- Move shamefully-hoist=true and node-linker=hoisted to .npmrc.yml - These are pnpm-specific settings that should use .npmrc.yml format This fixes npm warnings about unknown project config options when running npm commands. The .npmrc.yml format is the recommended way to configure pnpm-specific settings in a project. See: https://pnpm.io/npmrc.html
✅ Deploy Preview for agent-tars-docs canceled.
|
✅ Deploy Preview for tarko canceled.
|
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
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.
Summary
Move pnpm-specific configuration from
.npmrcto.npmrc.yml.Changes
shamefully_hoist=trueandnode-linker=hoistedto.npmrc.yml.npmrc.ymlformatProblem Fixed
The
.npmrcfile contained pnpm-specific options that are not standard npm configuration:shamefully_hoist=true- A pnpm-specific settingnode-linker=hoisted- A pnpm-specific settingWhen running npm commands (like
npm run testornpx tsc), npm would warn:Solution
The
.npmrc.ymlformat is the recommended way to configure pnpm-specific settings in a project. This resolves the npm warnings while maintaining the same pnpm behavior.Impact
Reference: pnpm npmrc Configuration