postgres
postgres copied to clipboard
fix: Correct formatting strategy for publishing on jsr
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.