Skip to content

Commit

Permalink
fix: add a new-line to end of generated file
Browse files Browse the repository at this point in the history
  • Loading branch information
paambaati authored Jul 23, 2024
1 parent efce621 commit 8c1ba1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/transformers/jsr-fixes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,5 @@ export default function transformer(file: FileInfo, api: API) {
});


return root.toSource();
return `${root.toSource()}${file.source.endsWith('\n') ? '' : '\n'}`;
}

0 comments on commit 8c1ba1b

Please sign in to comment.