From ae30b6814978ec6533f81bd2d0beb88e76864be1 Mon Sep 17 00:00:00 2001 From: EGOIST <0x142857@gmail.com> Date: Tue, 7 Dec 2021 16:02:10 +0800 Subject: [PATCH] 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 --- tsup.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tsup.config.ts b/tsup.config.ts index b6b4e4f9..f13b48d5 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -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: [ {