Skip to content

Conversation

@stormslowly
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings December 31, 2025 03:48
Copy link
Contributor

Copilot AI left a 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 enablePnp option for enabling Yarn PnP support
  • Documents pnpManifest option 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. |
Copy link

Copilot AI Dec 31, 2025

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.

Suggested change
| 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. |

Copilot uses AI. Check for mistakes.
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. |
Copy link

Copilot AI Dec 31, 2025

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.

Suggested change
| 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. |

Copilot uses AI. Check for mistakes.
@chenjiahan chenjiahan merged commit 740ce57 into main Dec 31, 2025
3 checks passed
@chenjiahan chenjiahan deleted the docs/detail_pnp_manfiest branch December 31, 2025 04:10
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.

3 participants