Skip to content

chore: move pnpm-specific settings from .npmrc to .npmrc.yml#1857

Open
hobostay wants to merge 1 commit into
bytedance:mainfrom
hobostay:fix-npmrc-pnpm-settings
Open

chore: move pnpm-specific settings from .npmrc to .npmrc.yml#1857
hobostay wants to merge 1 commit into
bytedance:mainfrom
hobostay:fix-npmrc-pnpm-settings

Conversation

@hobostay
Copy link
Copy Markdown
Contributor

Summary

Move pnpm-specific configuration from .npmrc to .npmrc.yml.

Changes

  • Move shamefully_hoist=true and node-linker=hoisted to .npmrc.yml
  • These are pnpm-specific settings that should use the .npmrc.yml format

Problem Fixed

The .npmrc file contained pnpm-specific options that are not standard npm configuration:

  • shamefully_hoist=true - A pnpm-specific setting
  • node-linker=hoisted - A pnpm-specific setting

When running npm commands (like npm run test or npx tsc), npm would warn:

npm warn Unknown project config "shamefully-hoist". This will stop working in the next major version of npm.
npm warn Unknown project config "node-linker". This will stop working in the next major version of npm.

Solution

The .npmrc.yml format is the recommended way to configure pnpm-specific settings in a project. This resolves the npm warnings while maintaining the same pnpm behavior.

Impact

  • ✅ Fixes npm warnings about unknown project config
  • ✅ Maintains same pnpm behavior
  • ✅ Follows pnpm best practices
  • ✅ No functional changes to the application

Reference: pnpm npmrc Configuration

- 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
@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 31, 2026

Deploy Preview for agent-tars-docs canceled.

Name Link
🔨 Latest commit c79bbd6
🔍 Latest deploy log https://app.netlify.com/projects/agent-tars-docs/deploys/69cb9a994106790008537182

@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 31, 2026

Deploy Preview for tarko canceled.

Name Link
🔨 Latest commit c79bbd6
🔍 Latest deploy log https://app.netlify.com/projects/tarko/deploys/69cb9a992338540008ea9e25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant