-
-
Notifications
You must be signed in to change notification settings - Fork 86
chore: add trustPolicy #1415
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
chore: add trustPolicy #1415
Conversation
✅ Deploy Preview for rsdoctor ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds pnpm trustPolicy configuration to prevent package downgrades and updates UI text in a component. The trustPolicy is set to no-downgrade with an exclusion for ua-parser-js.
Key Changes
- Added trustPolicy configuration with
no-downgradesetting and exclusion for ua-parser-js - Simplified the ModuleResolve page title from "Webpack Resolver Analysis" to "Resolver Analysis"
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| pnpm-workspace.yaml | Adds trustPolicy configuration to prevent package version downgrades |
| packages/components/src/pages/ModuleResolve/index.tsx | Simplifies page title and reformats component props |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
pnpm-workspace.yaml
Outdated
|
|
||
| trustPolicy: no-downgrade | ||
| trustPolicyExclude: | ||
| - [email protected] |
Copilot
AI
Nov 20, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version mismatch: The trustPolicyExclude specifies [email protected], but the pnpm-lock.yaml shows the project is using [email protected]. The version in the exclusion list should match the actual version being used in the project. Please update this to [email protected].
| - [email protected].41 | |
| - [email protected].40 |
pnpm-workspace.yaml
Outdated
|
|
||
| trustPolicy: no-downgrade | ||
| trustPolicyExclude: | ||
| - [email protected] |
Copilot
AI
Nov 20, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The trustPolicy and trustPolicyExclude settings should be configured in .npmrc file, not in pnpm-workspace.yaml. The pnpm-workspace.yaml file is specifically for defining workspace packages, while pnpm configuration options like trustPolicy belong in .npmrc.
These lines should be moved to .npmrc in the following format:
trust-policy=no-downgrade
trust-policy-exclude[][email protected]
| trustPolicy: no-downgrade | |
| trustPolicyExclude: | |
| - [email protected] |
Summary
Related Links