mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-10-13 18:22:13 +08:00
22 lines
518 B
TypeScript
22 lines
518 B
TypeScript
import { copySync } from 'fs-extra/esm';
|
|
import { defineConfig } from 'tsup';
|
|
|
|
export default defineConfig({
|
|
entry: [
|
|
'src/index.ts',
|
|
'src/main/index.ts',
|
|
'src/micro/index.ts',
|
|
],
|
|
splitting: false,
|
|
sourcemap: false,
|
|
clean: true,
|
|
dts: false,
|
|
shims: true,
|
|
format: ['esm'],
|
|
outExtension: () => ({ js: '.mjs' }),
|
|
onSuccess() {
|
|
copySync('src/main/runtime', 'dist/main/runtime');
|
|
copySync('src/micro/runtime', 'dist/micro/runtime');
|
|
},
|
|
});
|