Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(types): build types for src/index.ts only
otherwise `Options` will not be exported by `tsup`, not sure how this happens, probbably a bug in rollup-plugin-dts
  • Loading branch information
egoist committed Dec 7, 2021
1 parent 8d8abfe commit ae30b68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tsup.config.ts
Expand Up @@ -5,6 +5,9 @@ export default defineConfig({
name: 'tsup',
dts: {
resolve: true,
// build types for `src/index.ts` only
// otherwise `Options` will not be exported by `tsup`, not sure how this happens, probbably a bug in rollup-plugin-dts
entry: './src/index.ts',
},
esbuildPlugins: [
{
Expand Down

0 comments on commit ae30b68

Please sign in to comment.