Skip to content

Commit

Permalink
fix: always ship included dts files into soure
Browse files Browse the repository at this point in the history
fix #126
  • Loading branch information
qmhc committed Oct 13, 2022
1 parent 5acb4be commit fc345e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugin.ts
Expand Up @@ -302,12 +302,13 @@ export function dtsPlugin(options: PluginOptions = {}): Plugin {

files.forEach(file => {
if (dtsRE.test(file)) {
sourceDtsFiles.add(project.addSourceFileAtPath(file))

if (!copyDtsFiles) {
return
}

includedFileSet.add(file)
sourceDtsFiles.add(project.addSourceFileAtPath(file))
return
}

Expand Down

0 comments on commit fc345e3

Please sign in to comment.