You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running pnpm run lint on macOS Sequoia 15.2, Prettier exits with error code 2 if no files match the specified glob pattern. This causes the entire lint script to fail.
Error Example:
[error] No files matching the pattern were found: "**/*.md".
Cause:
Prettier throws an error when it doesn't find any files matching the provided glob pattern. This behavior interrupts the script execution.
Solution:
Wrap the glob pattern in quotes to prevent the shell from interpreting it incorrectly and avoid Prettier failing due to no matches.
Thanks for the feedback! The issue occurred because the README.md file, which is the only Markdown file in the generation part of Commencis-CLI, was removed. This is an active issue that will be addressed in the next version to provide a project-specific README during generation. Additionally, it would be best to update the Prettier script to include the glob pattern you proposed.
When running
pnpm run lint
on macOS Sequoia 15.2, Prettier exits with error code 2 if no files match the specified glob pattern. This causes the entire lint script to fail.Error Example:
Cause:
Prettier throws an error when it doesn't find any files matching the provided glob pattern. This behavior interrupts the script execution.
Solution:
Wrap the glob pattern in quotes to prevent the shell from interpreting it incorrectly and avoid Prettier failing due to no matches.
For example:
prettier "**/*.js" --check
Further Details: Refer to this StackOverflow discussion for additional context and solutions.
Steps to Reproduce:
Environment:
OS: macOS Sequoia 15.2
Package Manager: pnpm
Script:
pnpm run lint
(or any other lint sequence uses prettier)The text was updated successfully, but these errors were encountered: