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
prettier old version #616
Comments
@mitchellhamilton we could probably use an optional peer dependency here, wdyt? that way we could use whatever is installed by the user (conditionally) - the Prettier JS API probably didn't change much for what we need so it should be pretty straightforward to support its both major versions |
Yeah, and maybe until the next major we could try requiring prettier from the project root and use our version if that fails and in a major we'd not use prettier if we can't require it from the project root. |
changesets currently relies on on older version of prettier when generating changelogs, which then makes our `prettier --check` run fail during releases, which breaks our releases (.20. .21, .22). ref: changesets/changesets#616. The fix for now is to simply ignore the changelog when generating the check.
changesets currently relies on on older version of prettier when generating changelogs, which then makes our `prettier --check` run fail during releases, which breaks our releases (.20. .21, .22). ref: changesets/changesets#616. The fix for now is to simply ignore the changelog when generating the check.
Hey! Today i'm stuck with these problem too. In yarn workspaces prettier from Solution: I've added
|
I'm not sure I understand this - a demo repository would be helpful. Are you saying that our |
Yes, you are right. I will try to make a clean repository with this issue. |
In clean repo I can't repeat this. I think it's local error then, so its not |
We're running into an issue on the Astro repo because of the Prettier version being so old. Prettier is trying to run our plugin ( For now, we'll just disable our plugins inside CHANGELOG.md, but it'd be cool to get this working! |
I've created a PR that, I hope, should fix most of the problems like this: #905 |
Previously, weirdness would occur on release because of differences in the Prettier formatting for our CHANGELOG files between our auto-formatter and the formatting that Changesets itself tries to do. This was because Changesets had an old version of Prettier, but our repo had a newer version. We had a workaround for this where we deleted Changesets' version of Prettier, so that ours would be prefered. Now that changesets/changesets#905 has landed (fixing changesets/changesets#616), Changesets will prefer our version of Prettier. Plus the version they depend on is now up to date. So we can remove the workaround.
Affected Packages
apply-release-plan
Problem
It's relying on an old version of prettier: https://github.com/atlassian/changesets/blob/main/packages/apply-release-plan/package.json#L20
Proposed solution
Is it necessary to ship prettier as a dependency of this package? Could it be moved to devDependencies? If not, upgrade prettier to v2.
The text was updated successfully, but these errors were encountered: