Skip to content
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

fix(core): support prettier v3 when run nx format #19207

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

abel1105
Copy link
Contributor

After prettier upgrade to v3, the prettier.getSupportInfo will return promise

ref: Prettier doc

Closes #18992

Current Behavior

When running nx format:check will always fallback to -files=.

Expected Behavior

It should only run prettier on those changed files.

Related Issue(s)

Fixes #18992

@abel1105 abel1105 requested a review from a team as a code owner September 18, 2023 04:13
@abel1105 abel1105 requested a review from AgentEnder September 18, 2023 04:13
@vercel
Copy link

vercel bot commented Sep 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Oct 16, 2023 7:26am

@abel1105 abel1105 force-pushed the fix/prettier-v3-format branch 3 times, most recently from 8f68179 to 87ec362 Compare September 20, 2023 07:45
@abel1105 abel1105 force-pushed the fix/prettier-v3-format branch 2 times, most recently from 1680791 to 1895f4c Compare September 25, 2023 06:49
After prettier upgrade to v3, the getSupportInfo will return promise

Closes nrwl#18992
@abel1105 abel1105 force-pushed the fix/prettier-v3-format branch from 64ca6f5 to dabc9e5 Compare October 16, 2023 07:25
@AgentEnder AgentEnder merged commit b51bd04 into nrwl:master Oct 17, 2023
2 checks passed
@abel1105 abel1105 deleted the fix/prettier-v3-format branch October 20, 2023 08:01
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

running nx format --uncommitted goes through all files if using prettier 3
2 participants