From 5ca7fc51ab321d4b25ce9856c0e52894c1264d44 Mon Sep 17 00:00:00 2001 From: rk_zhang <40221744+qmhc@users.noreply.github.com> Date: Sat, 12 Mar 2022 12:52:02 +0800 Subject: [PATCH] fix: make default include same as tsconfig.json fix #58 --- src/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin.ts b/src/plugin.ts index 98510b5..b5e05cf 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -230,7 +230,7 @@ export function dtsPlugin(options: PluginOptions = {}): Plugin { exclude?: string[] } = readConfigFile(tsConfigPath, project.getFileSystem().readFileSync).config ?? {} - const include = options.include ?? tsConfig.include + const include = options.include ?? tsConfig.include ?? '**/*' const exclude = options.exclude ?? tsConfig.exclude bundleDebug('read config')