Skip to content

Commit

Permalink
feat: strip the complete .d.ts extension for output filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
elyukai committed May 29, 2023
1 parent 955996b commit 9683113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export const generate = (options: GeneratorOptions): void => {
filteredFiles.forEach(file => {
const relativePath = relative(sourceDir, file.fileName)
const dir = dirname(relativePath)
const name = basename(relativePath, ".ts")
const name = basename(relativePath).replace(/(?:\.d)?\.ts$/, "")

try {
if (verbose) {
Expand Down

0 comments on commit 9683113

Please sign in to comment.