Skip to content

Commit

Permalink
chore: update extensions in cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Jun 25, 2023
1 parent fb4c2b6 commit c151d53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -238,7 +238,7 @@ export async function build(_options: Options) {
// .d.ts files are removed in the `dtsTask` instead
// `dtsTask` is a separate process, which might start before `mainTasks`
if (options.dts) {
extraPatterns.unshift('!**/*.d.ts')
extraPatterns.unshift('!**/*.d.{ts,cts,mts}')
}
await removeFiles(['**/*', ...extraPatterns], options.outDir)
logger.info('CLI', 'Cleaning output folder')
Expand Down
4 changes: 2 additions & 2 deletions src/rollup.ts
Expand Up @@ -118,7 +118,7 @@ const getRollupConfig = async (
name: 'tsup:clean',
async buildStart() {
if (options.clean) {
await removeFiles(['**/*.d.ts'], options.outDir)
await removeFiles(['**/*.d.{ts,mts,cts}'], options.outDir)
}
},
}
Expand Down Expand Up @@ -215,7 +215,7 @@ async function runRollup(options: RollupConfig) {
logger.info('dts', 'Build start')
const bundle = await rollup(options.inputConfig)
const results = await Promise.all(options.outputConfig.map(bundle.write))
const outputs = results.flatMap((result) => result.output);
const outputs = results.flatMap((result) => result.output)
logger.success('dts', `⚡️ Build success in ${getDuration()}`)
reportSize(
logger,
Expand Down

1 comment on commit c151d53

@vercel
Copy link

@vercel vercel bot commented on c151d53 Jun 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

tsup – ./

tsup-git-main-egoist.vercel.app
tsup.vercel.app
tsup-egoist.vercel.app
tsup.egoist.dev

Please sign in to comment.