Repository navigation
fix: suppress auth warning when PNPM_CONFIG_NPMRC_AUTH_FILE points at project .npmrc - #12679
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughProject ChangesTrusted project .npmrc auth handling
Estimated code review effort: 3 (Moderate) | ~20 minutes Assessment against linked issues
Possibly related PRs
Suggested labels: Suggested reviewers: ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by QodoSuppress auth warning when npmrcAuthFile targets the project .npmrc Description
Diagram
High-Level Assessment
Files changed (6)
|
Code Review by Qodo
1.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
pnpm11/config/reader/test/index.ts (1)
4001-4027: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winCover the literal
.npmrcvariant from the issue too.This test only exercises
PNPM_CONFIG_NPMRC_AUTH_FILEwithpath.resolve('.npmrc'). The reported regression was the literal.npmrcvalue, so adding that case would protect the exact input shape this fix is meant to preserve. As per path instructions, "Test expectations: include a regression test that fails without the fix and asserts the observable effect," and the PR objective calls outPNPM_CONFIG_NPMRC_AUTH_FILE=.npmrc.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pnpm11/config/reader/test/index.ts` around lines 4001 - 4027, The current regression test only covers PNPM_CONFIG_NPMRC_AUTH_FILE using the resolved absolute path, but it should also cover the literal .npmrc value mentioned in the issue. Update the test in the getConfig-based auth warning coverage to add a case for env.PNPM_CONFIG_NPMRC_AUTH_FILE set to ".npmrc" alongside the existing path.resolve('.npmrc') scenario, and assert that warnings from the auth warning filter still do not include "Ignored project-level auth setting" for that exact input shape.Source: Path instructions
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.changeset/rare-mice-peel.md:
- Around line 1-5: The changeset only declares a patch for `@pnpm/config.reader`,
but this PR also changes pnpm CLI warning behavior, so add a pnpm release note
entry to the same changeset. Update the changeset content alongside the existing
package entry so the pnpm-facing output change is captured with the correct bump
type, using the changeset file and its current package list as the place to make
the edit.
---
Nitpick comments:
In `@pnpm11/config/reader/test/index.ts`:
- Around line 4001-4027: The current regression test only covers
PNPM_CONFIG_NPMRC_AUTH_FILE using the resolved absolute path, but it should also
cover the literal .npmrc value mentioned in the issue. Update the test in the
getConfig-based auth warning coverage to add a case for
env.PNPM_CONFIG_NPMRC_AUTH_FILE set to ".npmrc" alongside the existing
path.resolve('.npmrc') scenario, and assert that warnings from the auth warning
filter still do not include "Ignored project-level auth setting" for that exact
input shape.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: e3bbdb42-33a1-42f1-bf96-c590bcc5d419
📒 Files selected for processing (6)
.changeset/rare-mice-peel.mdpacquet/crates/config/src/lib.rspacquet/crates/config/src/npmrc_auth/tests.rspacquet/crates/config/src/tests.rspnpm11/config/reader/src/loadNpmrcFiles.tspnpm11/config/reader/test/index.ts
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #12679 +/- ##
==========================================
- Coverage 85.62% 85.62% -0.01%
==========================================
Files 413 413
Lines 64335 64343 +8
==========================================
+ Hits 55089 55093 +4
- Misses 9246 9250 +4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Code review by qodo was updated up to the latest commit 1104071 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pacquet/crates/config/src/lib.rs`:
- Around line 1950-1951: The trust check in config parsing is comparing raw
PathBufs, so relative PNPM_CONFIG_NPMRC_AUTH_FILE values like .npmrc or ./.npmrc
won’t match the workspace .npmrc and the ignored-auth warning still fires.
Update the project_is_trusted_auth_file logic in the config code to compare
resolved/normalized paths using pnpm-equivalent semantics before deciding trust,
and add a regression test covering a relative npmrcAuthFile value that should
suppress the warning only when it resolves exactly to the workspace .npmrc.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 39087097-f6bd-40a4-ac66-3664a981537b
📒 Files selected for processing (4)
.changeset/rare-mice-peel.mdpacquet/crates/config/src/lib.rspacquet/crates/config/src/npmrc_auth/tests.rspacquet/crates/config/src/tests.rs
🚧 Files skipped from review as they are similar to previous changes (3)
- .changeset/rare-mice-peel.md
- pacquet/crates/config/src/npmrc_auth/tests.rs
- pacquet/crates/config/src/tests.rs
|
Code review by qodo was updated up to the latest commit 908b6f3 |
|
Code review by qodo was updated up to the latest commit 499a72a |
1 similar comment
|
Code review by qodo was updated up to the latest commit 499a72a |
Integrated-Benchmark Report (Linux)Commit: Each scenario reports direct installs and pnpr installs. Bencher consumes pacquet@HEAD and pnpr@HEAD. Scenario: Isolated linker: fresh restore, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.0961688365799995,
"stddev": 0.17379363782264998,
"median": 4.05606480158,
"user": 3.859672839999999,
"system": 3.4992972399999993,
"min": 3.92172373058,
"max": 4.42274136458,
"times": [
4.36545379958,
4.064802927580001,
4.07269458858,
3.92172373058,
4.1712992485800005,
3.9905420145800004,
4.42274136458,
4.04732667558,
3.94094713558,
3.96415688058
]
},
{
"command": "pacquet@main",
"mean": 4.049352784080001,
"stddev": 0.15313271305719675,
"median": 3.9855688325800003,
"user": 3.8779425399999994,
"system": 3.49578594,
"min": 3.88574812358,
"max": 4.30175090258,
"times": [
4.24503620558,
4.30175090258,
3.9609670085800004,
4.03220701458,
3.93457328158,
3.88574812358,
3.9225203085800002,
3.96838523158,
4.23958733058,
4.00275243358
]
},
{
"command": "pnpr@HEAD",
"mean": 2.11765304558,
"stddev": 0.06219831447852616,
"median": 2.11222312708,
"user": 2.63370724,
"system": 3.0213639399999996,
"min": 2.01976031058,
"max": 2.2145113055800003,
"times": [
2.1544528775800003,
2.2145113055800003,
2.1624327195800004,
2.08777759558,
2.1860735405800003,
2.0923445435800003,
2.05320272358,
2.01976031058,
2.13210171058,
2.0738731285800003
]
},
{
"command": "pnpr@main",
"mean": 2.1230986685800004,
"stddev": 0.11625168752964363,
"median": 2.0879028230800003,
"user": 2.6393439400000003,
"system": 3.0000195399999994,
"min": 1.96015271758,
"max": 2.37216717158,
"times": [
2.20376631258,
2.37216717158,
2.0759249845800003,
2.0876493595800003,
2.02232375258,
2.0881562865800003,
2.13318263658,
1.96015271758,
2.0706321665800003,
2.21703129758
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.6430657473800002,
"stddev": 0.017698368854393798,
"median": 0.6407508473800001,
"user": 0.36858177999999997,
"system": 1.3270916399999997,
"min": 0.61772725238,
"max": 0.6650813403800001,
"times": [
0.61772725238,
0.65375185838,
0.61835762938,
0.6358168983800001,
0.6382782333800001,
0.6327750913800001,
0.66449699338,
0.6432234613800001,
0.6650813403800001,
0.6611487153800001
]
},
{
"command": "pacquet@main",
"mean": 0.6386845763800001,
"stddev": 0.014990560491128594,
"median": 0.6420320793800001,
"user": 0.38246347999999997,
"system": 1.31735944,
"min": 0.6075399653800001,
"max": 0.6574733703800001,
"times": [
0.64503059238,
0.6336019483800001,
0.6315599873800001,
0.6238176363800001,
0.6501908243800001,
0.6390335663800001,
0.65066111238,
0.6574733703800001,
0.6075399653800001,
0.64793676038
]
},
{
"command": "pnpr@HEAD",
"mean": 0.68507623168,
"stddev": 0.028675412585696693,
"median": 0.68108504938,
"user": 0.38293458,
"system": 1.3485056399999997,
"min": 0.65851857538,
"max": 0.7565096113800001,
"times": [
0.69018554338,
0.65851857538,
0.65940820838,
0.6598433473800001,
0.6767068393800001,
0.68029593338,
0.6906613513800001,
0.69675874138,
0.6818741653800001,
0.7565096113800001
]
},
{
"command": "pnpr@main",
"mean": 0.68651640318,
"stddev": 0.026202199425236373,
"median": 0.6848465703800001,
"user": 0.38051508,
"system": 1.35396514,
"min": 0.65892380638,
"max": 0.7395135903800001,
"times": [
0.65892380638,
0.6887086933800001,
0.6623611423800001,
0.6809844473800001,
0.66293938738,
0.6626027443800001,
0.7060629633800001,
0.6977114643800001,
0.7395135903800001,
0.70535579238
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.225193748760001,
"stddev": 0.04618917913133223,
"median": 4.22067961716,
"user": 3.7132777,
"system": 3.36851268,
"min": 4.16274133316,
"max": 4.33713902216,
"times": [
4.33713902216,
4.21331208516,
4.22529120016,
4.25138008416,
4.22116159516,
4.16274133316,
4.18980344816,
4.20031208916,
4.22019763916,
4.23059899116
]
},
{
"command": "pacquet@main",
"mean": 4.21766064856,
"stddev": 0.045512519912213265,
"median": 4.21475115816,
"user": 3.7216876999999995,
"system": 3.3332738799999992,
"min": 4.12832731316,
"max": 4.2796963331599995,
"times": [
4.2796963331599995,
4.22976011116,
4.263847066159999,
4.19974220516,
4.2480015481599995,
4.1912291671599995,
4.12832731316,
4.192210001159999,
4.19099192116,
4.25280081916
]
},
{
"command": "pnpr@HEAD",
"mean": 2.189295972459999,
"stddev": 0.11498064446893902,
"median": 2.16510538016,
"user": 2.4681525,
"system": 2.8719124799999998,
"min": 2.03410919816,
"max": 2.3614761931599997,
"times": [
2.09319492616,
2.2414892101599997,
2.14575204816,
2.3614761931599997,
2.1223767681599996,
2.03410919816,
2.29219406916,
2.07565415216,
2.1844587121599996,
2.3422544471599998
]
},
{
"command": "pnpr@main",
"mean": 2.2531595487599994,
"stddev": 0.14128919277530103,
"median": 2.2034099431599996,
"user": 2.4442616999999993,
"system": 2.88221128,
"min": 2.05188608316,
"max": 2.45040332916,
"times": [
2.45040332916,
2.05188608316,
2.3621541641599997,
2.4096482441599996,
2.19203437816,
2.11845185816,
2.1949350001599996,
2.40487460516,
2.21188488616,
2.13532293916
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.3225181034799998,
"stddev": 0.015390452110597638,
"median": 1.32230645298,
"user": 1.28503272,
"system": 1.6866187799999999,
"min": 1.30087771298,
"max": 1.35080852198,
"times": [
1.33328822598,
1.32529730698,
1.30087771298,
1.3145434809799998,
1.3157871609799998,
1.3193155989799998,
1.3017883229799998,
1.33494291398,
1.32853178898,
1.35080852198
]
},
{
"command": "pacquet@main",
"mean": 1.32819296538,
"stddev": 0.008681694001584554,
"median": 1.32744543198,
"user": 1.2979592199999999,
"system": 1.6926479799999998,
"min": 1.31111073198,
"max": 1.3415700739799998,
"times": [
1.32706968798,
1.33038492998,
1.32536457098,
1.33555447798,
1.3370298969799999,
1.3210852499799999,
1.32782117598,
1.3415700739799998,
1.3249388579799999,
1.31111073198
]
},
{
"command": "pnpr@HEAD",
"mean": 0.6761379110799999,
"stddev": 0.08369396799908534,
"median": 0.6516776654800001,
"user": 0.33076562,
"system": 1.2861660799999999,
"min": 0.6336186179800001,
"max": 0.9132194219800001,
"times": [
0.6336186179800001,
0.6495316709800001,
0.65208495198,
0.6523223679800001,
0.9132194219800001,
0.66178590398,
0.65953961398,
0.6512703789800001,
0.6420280619800001,
0.6459781209800001
]
},
{
"command": "pnpr@main",
"mean": 0.6371019278800001,
"stddev": 0.00938947143399005,
"median": 0.6369979989800001,
"user": 0.32578081999999997,
"system": 1.25528048,
"min": 0.6217138629800001,
"max": 0.6499505209800001,
"times": [
0.6499505209800001,
0.63571061098,
0.62836994698,
0.6456974319800001,
0.6315895319800001,
0.6217138629800001,
0.63828538698,
0.6297779279800001,
0.64105534898,
0.64886870898
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.9543187536,
"stddev": 0.05067607498549321,
"median": 2.9370923239,
"user": 1.73790646,
"system": 1.9163622,
"min": 2.9218960889,
"max": 3.0916547999,
"times": [
2.9636999809,
2.9433323639,
2.9478095119,
2.9246815029,
2.9218960889,
2.9306493359,
2.9248214339,
2.9308522839,
3.0916547999,
2.9637902339
]
},
{
"command": "pacquet@main",
"mean": 2.9653446206000007,
"stddev": 0.02524335038676217,
"median": 2.9632540184000002,
"user": 1.7528220599999997,
"system": 1.9270157,
"min": 2.9341658369,
"max": 3.0114964719,
"times": [
2.9629530549000003,
3.0114964719,
2.9683187219000002,
2.9457042479,
2.9635549819,
2.9341658369,
2.9460111759000003,
2.9406515179,
2.9896490659,
2.9909411309
]
},
{
"command": "pnpr@HEAD",
"mean": 0.6600313048,
"stddev": 0.008119941613109867,
"median": 0.6578783188999999,
"user": 0.34022645999999995,
"system": 1.2943311000000002,
"min": 0.6481344669,
"max": 0.6773873259,
"times": [
0.6563199949,
0.6659018889,
0.6589578689,
0.6481344669,
0.6551153839,
0.6539620339,
0.6773873259,
0.6642908459,
0.6567987689,
0.6634444699
]
},
{
"command": "pnpr@main",
"mean": 0.6476570573,
"stddev": 0.007045075710625896,
"median": 0.6482519549,
"user": 0.33367026,
"system": 1.2653219999999998,
"min": 0.6357443669,
"max": 0.6581079649,
"times": [
0.6408953689,
0.6479038899,
0.6357443669,
0.6498333909,
0.6417857569,
0.6486000198999999,
0.6457306519,
0.6503860489,
0.6581079649,
0.6575831139
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 6.973974233040001,
"stddev": 0.1682226948987471,
"median": 6.9425940527400005,
"user": 4.105315159999999,
"system": 3.8026046800000004,
"min": 6.740427388740001,
"max": 7.26485053974,
"times": [
6.8709408747400005,
6.81088032474,
6.740427388740001,
6.98602395174,
7.00189675674,
7.16624965674,
7.12909745674,
6.89916415374,
7.26485053974,
6.87021122674
]
},
{
"command": "pacquet@main",
"mean": 6.891586577039999,
"stddev": 0.12111671395291584,
"median": 6.88304580874,
"user": 4.062754459999999,
"system": 3.8104609799999993,
"min": 6.73269409474,
"max": 7.11929671774,
"times": [
6.90973629274,
6.76798115574,
6.84771071874,
7.11929671774,
6.95701770074,
6.879101313740001,
6.88699030374,
7.03497993374,
6.780357538740001,
6.73269409474
]
},
{
"command": "pnpr@HEAD",
"mean": 4.98865593254,
"stddev": 0.11590925844174578,
"median": 4.98598127324,
"user": 2.76450656,
"system": 3.2536189799999997,
"min": 4.819237562740001,
"max": 5.2265203087400005,
"times": [
5.05774311374,
4.89297890874,
4.90506997574,
5.00392542674,
4.91017633574,
5.05451602874,
4.819237562740001,
5.0483545447400004,
5.2265203087400005,
4.96803711974
]
},
{
"command": "pnpr@main",
"mean": 5.06388661124,
"stddev": 0.10130423229181337,
"median": 5.0580511047400005,
"user": 2.7951957600000004,
"system": 3.2716799800000005,
"min": 4.92062780074,
"max": 5.26112094574,
"times": [
5.26112094574,
5.11696355774,
4.97394196074,
4.99735371274,
5.04031059174,
5.14757447474,
5.12204653274,
5.07579161774,
4.98313491774,
4.92062780074
]
}
]
} |
|
| Branch | pr/12679 |
| Testbed | pnpr |
⚠️ WARNING: No Threshold found!Without a Threshold, no Alerts will ever be generated.
Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the--ci-only-thresholdsflag.
Click to view all benchmark results
| Benchmark | Latency | milliseconds (ms) |
|---|---|---|
| isolated-linker.fresh-install.cold-cache.cold-store | 📈 view plot | 2,189.30 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 660.03 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 676.14 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 2,117.65 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 4,988.66 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 685.08 ms |
499a72a to
6dc1f64
Compare
|
Code review by qodo was updated up to the latest commit 6dc1f64 |
1 similar comment
|
Code review by qodo was updated up to the latest commit 6dc1f64 |
… seam Anchor a relative npmrcAuthFile value at the cwd via the existing GetCurrentDir capability instead of std::path::absolute, so the trust check is testable with a fake cwd. Add regression tests on both stacks for the literal ".npmrc" value reported in pnpm#12480, isolate the enableGlobalVirtualStore CI test from the developer's global config.yaml, and reword the changeset as a release note.
|
Code review by qodo was updated up to the latest commit 1cee3fc |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pnpm11/config/reader/test/index.ts`:
- Around line 4042-4066: The test coverage in this config reader spec is missing
the negative parity case for PNPM_CONFIG_NPMRC_AUTH_FILE when a relative path
resolves outside the project, so the trust check in loadNpmrcFiles.ts is only
exercised for trusted resolutions. Add a mirrored test alongside the existing
getConfig-based cases that changes the cwd, sets PNPM_CONFIG_NPMRC_AUTH_FILE to
".npmrc", and verifies warnings still include “Ignored project-level auth
setting” when the resolved file is elsewhere. Keep the existing trusted-path
test for the literal relative project .npmrc and use the same warning-filtering
pattern to assert the untrusted case is not suppressed.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: a086e914-33d8-4bdd-9714-6724af0bf580
📒 Files selected for processing (5)
.changeset/rare-mice-peel.mdpacquet/crates/config/src/api.rspacquet/crates/config/src/lib.rspacquet/crates/config/src/tests.rspnpm11/config/reader/test/index.ts
✅ Files skipped from review due to trivial changes (2)
- pacquet/crates/config/src/api.rs
- .changeset/rare-mice-peel.md
🚧 Files skipped from review as they are similar to previous changes (1)
- pacquet/crates/config/src/lib.rs
|
Code review by qodo was updated up to the latest commit 1cee3fc |
…fake cwd Mirror pacquet's npmrc_auth_file_relative_resolving_elsewhere_keeps_warning on the TypeScript side: a relative PNPM_CONFIG_NPMRC_AUTH_FILE that does not resolve to the project .npmrc keeps the warning and does not expand the token. Isolate the test from the developer's real auth.ini via XDG_CONFIG_HOME. Also reset the FAKE_CWD thread-local in set_fake_env so a fake cwd cannot leak into a later test on a reused worker thread.
Fixes the dylint perfectionist::bare-identifier-reference finding.
|
Regarding the two open findings in the qodo review: 2. Fake cwd leaks across tests — fixed in f136c18: 4. Path equality misses symlinks — the premise is out of date: pacquet no longer canonicalizes in this check (the Written by an agent (Claude Code, claude-fable-5). |
|
Code review by qodo was updated up to the latest commit 7a3b883 |
|
Congrats on merging your first pull request! 🎉🎉🎉 |
Summary
When
PNPM_CONFIG_NPMRC_AUTH_FILEis set to the project.npmrc, pnpm still fires the "Ignored project-level auth setting" warning even though the user explicitly opted in to trusting that file. The point ofPNPM_CONFIG_NPMRC_AUTH_FILEis to declare trust — the warning is wrong in this case.Closes #12480
Squash Commit Body
When npmrcAuthFile resolves to the same path as the project .npmrc, the user
has explicitly opted in to trusting that file for auth. Before this fix, the
warning was unconditionally fired for any auth env var in the project .npmrc,
even when PNPM_CONFIG_NPMRC_AUTH_FILE pointed at it.
Fix: compare the resolved npmrcAuthFile path against the workspace .npmrc path.
If they match, allow env var expansion and skip the warning.
Closes #12480
Checklist
pacquet/port, or the description notes what still needs porting.pnpm changeset) if this PR changes any publishedpackage. Keep it short and written for pnpm users — it becomes a release note.
Summary by CodeRabbit
.npmrcis explicitly used as the auth source (viaPNPM_CONFIG_NPMRC_AUTH_FILE), including relative-path scenarios..npmrcenv placeholder handling for_authToken, expanding values only for trusted auth sources and avoiding incorrect “project-level” treatment..npmrcprocessing so env placeholder expansion behavior matches whether the project.npmrcwas explicitly selected._authTokenplaceholder expansion.