We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c899448 commit ea26e98Copy full SHA for ea26e98
1 file changed
tsup.base.config.ts
@@ -116,7 +116,7 @@ const baseConfig: Options & {
116
// Thus, when building in parallel, some of the files will be emptied.
117
// We are writing output to /dist.tmp/ and copy everything back to /dist/.
118
// "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/',
+ onSuccess: `while [ -z "$(find ./dist.tmp -name '*.d.ts' -print -quit)" ]; do sleep 0.2; done; mkdir -p ./dist/ && cp ./dist.tmp/* ./dist/`,
120
outDir: './dist.tmp/'
121
};
122
0 commit comments