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

chore: correct formatting strategy for publishing on JSR #474

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

Digifox03
Copy link
Contributor

Currently, the workflow to publish on jsr first modifies the imports, then checks if the formatting is correct.
Since the new imports are shorter, it can happen that an import statements spanning multiple lines, becomes short enough to fit in a single line (which deno fmt mandates).

A solution, as proposed in this PR, is to check the formatting before converting the code, and then reformat again after the code is converted.

@bombillazo bombillazo requested a review from iuioiua March 4, 2024 11:54
@iuioiua iuioiua changed the title fix: Correct formatting strategy for publishing on jsr chore: correct formatting strategy for publishing on JSR Mar 4, 2024
@iuioiua
Copy link
Contributor

iuioiua commented Mar 4, 2024

Good catch! Thank you.

@iuioiua iuioiua merged commit 499143f into denodrivers:main Mar 4, 2024
3 checks passed
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.

None yet

2 participants