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

test: package.json eol is removed #201

Closed
wants to merge 3 commits into from

Conversation

Barbapapazes
Copy link
Member

@Barbapapazes Barbapapazes commented Jul 18, 2024

fix #170

Hello 👋,

It seems that the trailing newline is remove when changelogen touch the version. This is a problem because it can break format checking tools like prettier or eslint.

I add tests that fails but it seems that this bug comes from pkg-types.

To fix this issue, I simply update pkg-types to 1.1.3 since Pooya fixed this in unjs/pkg-types#175

@Barbapapazes Barbapapazes marked this pull request as ready for review July 18, 2024 10:46
@pi0 pi0 changed the title fix: package.json eol is removed test: package.json eol is removed Jul 18, 2024
@pi0
Copy link
Member

pi0 commented Jul 18, 2024

Thanks for the PR. ^1.0.3 is a caret range (with fresh lockfile, it tells package managers to use latest 1.x) so no release is required to have the fix.

As for the tests, preserving EOL is responsibility scope of pkg-types therefore need to be tested there (otherwise we overcomplicate and slow down tests)

@pi0 pi0 closed this Jul 18, 2024
@Barbapapazes
Copy link
Member Author

Yes, no need to duplicate tests.

At first, I was thinking that changelogen was the issue but while I was writing tests I discover that pkg-types was the issue!

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.

package.json conflicting with eol-last eslint rule
2 participants