Skip to content

Commit

Permalink
fix: make default include same as tsconfig.json
Browse files Browse the repository at this point in the history
fix #58
  • Loading branch information
qmhc committed Mar 12, 2022
1 parent 173dfe7 commit 5ca7fc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.ts
Expand Up @@ -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')
Expand Down

0 comments on commit 5ca7fc5

Please sign in to comment.