-
Notifications
You must be signed in to change notification settings - Fork 6
docs: add Yarn PnP options describe #142
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
Conversation
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 documentation for Yarn Plug'n'Play (PnP) support to the README. The changes include adding PnP to the feature list and documenting two new configuration options (enablePnp and pnpManifest) in the "Other Options" table.
- Adds Yarn Plug'n'Play feature to the main features list
- Documents
enablePnpoption for enabling Yarn PnP support - Documents
pnpManifestoption for specifying a custom PnP manifest file path - Reorganizes the "Other Options" table with improved formatting
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
README.md
Outdated
| | tsconfig.configFile | | A relative path to the tsconfig file based on `cwd`, or an absolute path of tsconfig file. | | ||
| | tsconfig.references | `[]` | - 'auto': inherits from TypeScript config <br/> - `string []`: relative path (based on directory of the referencing tsconfig file) or absolute path of referenced project's tsconfig | | ||
| | enablePnp | false | Enable Yarn Plug'n'Play support | | ||
| | pnpManifest | None | Absolute path to the Yarn Plug'n'Play manifest file; takes effect when PnP is enabled. <br/> - `None`: PnP manifest located in the nearest ancestor directory; <br/> - `Some(PathBuf)`: Use a specific PnP manifest file. This is useful when enabling PnP with `enableGlobalCache: true`, but users must ensure there are no cross-project requires across Yarn PnP projects. | |
Copilot
AI
Dec 31, 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.
Grammar issue: "PnP manifest located in the nearest ancestor directory" should read "PnP manifest is located in the nearest ancestor directory" for clarity and grammatical correctness.
| | pnpManifest | None | Absolute path to the Yarn Plug'n'Play manifest file; takes effect when PnP is enabled. <br/> - `None`: PnP manifest located in the nearest ancestor directory; <br/> - `Some(PathBuf)`: Use a specific PnP manifest file. This is useful when enabling PnP with `enableGlobalCache: true`, but users must ensure there are no cross-project requires across Yarn PnP projects. | | |
| | pnpManifest | None | Absolute path to the Yarn Plug'n'Play manifest file; takes effect when PnP is enabled. <br/> - `None`: PnP manifest is located in the nearest ancestor directory; <br/> - `Some(PathBuf)`: Use a specific PnP manifest file. This is useful when enabling PnP with `enableGlobalCache: true`, but users must ensure there are no cross-project requires across Yarn PnP projects. | |
README.md
Outdated
| | tsconfig.configFile | | A relative path to the tsconfig file based on `cwd`, or an absolute path of tsconfig file. | | ||
| | tsconfig.references | `[]` | - 'auto': inherits from TypeScript config <br/> - `string []`: relative path (based on directory of the referencing tsconfig file) or absolute path of referenced project's tsconfig | | ||
| | enablePnp | false | Enable Yarn Plug'n'Play support | | ||
| | pnpManifest | None | Absolute path to the Yarn Plug'n'Play manifest file; takes effect when PnP is enabled. <br/> - `None`: PnP manifest located in the nearest ancestor directory; <br/> - `Some(PathBuf)`: Use a specific PnP manifest file. This is useful when enabling PnP with `enableGlobalCache: true`, but users must ensure there are no cross-project requires across Yarn PnP projects. | |
Copilot
AI
Dec 31, 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 description references Rust types (Some(PathBuf)) in user-facing documentation. Since this is a JavaScript/TypeScript API (as evidenced by the napi bindings), the description should use JavaScript/TypeScript terminology instead. Consider changing "Some(PathBuf)" to "string (absolute path)" to match the expected TypeScript type.
| | pnpManifest | None | Absolute path to the Yarn Plug'n'Play manifest file; takes effect when PnP is enabled. <br/> - `None`: PnP manifest located in the nearest ancestor directory; <br/> - `Some(PathBuf)`: Use a specific PnP manifest file. This is useful when enabling PnP with `enableGlobalCache: true`, but users must ensure there are no cross-project requires across Yarn PnP projects. | | |
| | pnpManifest | None | Absolute path to the Yarn Plug'n'Play manifest file; takes effect when PnP is enabled. <br/> - If omitted: the PnP manifest is located in the nearest ancestor directory. <br/> - `string` (absolute path): use a specific PnP manifest file. This is useful when enabling PnP with `enableGlobalCache: true`, but users must ensure there are no cross-project requires across Yarn PnP projects. | |
No description provided.