Skip to content

Commit 2f75a28

Browse files
fix: ensure ext parameter includes leading dot in path formatting
- Explicitly prepend '.' to ext if missing (e.g., "ts" → ".ts")
1 parent 9fd6b7d commit 2f75a28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/code-formatter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class CodeFormatter {
4444
formatter: { indentStyle: "space" },
4545
});
4646
const formatted = biome.formatContent(biomeProject.projectKey, content, {
47-
filePath: path.format({ name: nanoid.nanoid(), ext: "ts" }),
47+
filePath: path.format({ name: nanoid.nanoid(), ext: ".ts" }),
4848
});
4949
return formatted.content;
5050
};

0 commit comments

Comments
 (0)