Skip to content

Commit 34658e5

Browse files
authored
fix:copy operation failure after tsup build succeeds in the Windows environment (#74)
1 parent cd8861d commit 34658e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ export default defineConfig((options) => { // The options here is derived from C
1313
dts: true,
1414
format: ['esm', 'cjs'],
1515
minify: !options.watch,
16-
onSuccess: 'cp -a public/. dist',
16+
onSuccess: process.platform === 'win32' ? 'xcopy /E /I public\\ dist\\' : 'cp -a public/. dist',
1717
}
1818
})

0 commit comments

Comments
 (0)