Skip to content

Commit cf312d6

Browse files
committed
Wait for both *.d.ts and *.d.t.mts
1 parent b792414 commit cf312d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tsup.base.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const baseConfig: Options & {
124124
// All instances of tsup will try to copy at the same time and could fail with "cp: cannot create regular file './dist/...': File exists".
125125
// We can have multiple config writing to their own folder and copy-merge. But then each config will own their version of `onSuccess`, could be messy.
126126

127-
onSuccess: `while [ -z "$(find ./dist.tmp -name '*.d.ts' -print -quit)" ]; do sleep 0.2; done; mkdir -p ./dist/; until cp ./dist.tmp/* ./dist/; do sleep 0.5; done`,
127+
onSuccess: `while [ -z "$(find ./dist.tmp \\( -name '*.d.ts' -o -name '*.d.mts' \\) -print -quit)" ]; do sleep 0.2; done; mkdir -p ./dist/; sleep 0.5; until cp ./dist.tmp/* ./dist/; do sleep 0.5; done`,
128128
outDir: './dist.tmp/'
129129
};
130130

0 commit comments

Comments
 (0)