postgres icon indicating copy to clipboard operation
postgres copied to clipboard

fix: Correct formatting strategy for publishing on jsr

Open Digifox03 opened this issue 1 year ago • 0 comments

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.

Digifox03 avatar Mar 04 '24 11:03 Digifox03