Skip to content

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
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.

2 participants