Skip to content

Commit ea26e98

Browse files
committed
Use find
1 parent c899448 commit ea26e98

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
@@ -116,7 +116,7 @@ const baseConfig: Options & {
116116
// Thus, when building in parallel, some of the files will be emptied.
117117
// We are writing output to /dist.tmp/ and copy everything back to /dist/.
118118
// "onSuccess" runs before DTS, we need to wait until *.d.ts are emitted.
119-
onSuccess: 'while [ ! -f ./dist.tmp/*.d.ts ]; do sleep 0.2; done; mkdir -p ./dist/ && cp ./dist.tmp/* ./dist/',
119+
onSuccess: `while [ -z "$(find ./dist.tmp -name '*.d.ts' -print -quit)" ]; do sleep 0.2; done; mkdir -p ./dist/ && cp ./dist.tmp/* ./dist/`,
120120
outDir: './dist.tmp/'
121121
};
122122

0 commit comments

Comments
 (0)