Skip to content

Commit

Permalink
chore: change to outdir naming
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Feb 25, 2024
1 parent 1f46d8b commit dfeb3bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ await Bun.build({
dts({
cwd: import.meta.dir, // optional
withSourceMap: true, // optional
outdir: 'dist/types', // optional
}),
],
})
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interface DtsOptions {
compiler?: ts.CompilerOptions
tsconfigPath?: string
cwd?: string
outDir?: ts.CompilerOptions['outDir']
outdir?: ts.CompilerOptions['outDir'] // sadly, the bundler uses `outdir` instead of `outDir` and to avoid confusion, we'll use `outdir` here
withSourceMap?: boolean
}

Expand All @@ -30,7 +30,7 @@ export async function generate(entryPoints: string | string[], options?: DtsOpti
declaration: true,
emitDeclarationOnly: true,
noEmit: false,
outDir: options?.outDir ?? 'dist/types',
outDir: options?.outdir ?? 'dist/types',
declarationMap: options?.withSourceMap ?? false,
}

Expand Down

0 comments on commit dfeb3bb

Please sign in to comment.