17 lines
424 B
TypeScript
17 lines
424 B
TypeScript
|
import { defineConfig } from 'tsup';
|
||
|
import fg from 'fast-glob';
|
||
|
import path from 'path';
|
||
|
import { globExcludeFiles } from './src/constant';
|
||
|
|
||
|
const entry = fg.globSync(['src/**', ...globExcludeFiles], { cwd: __dirname, absolute: true });
|
||
|
|
||
|
export default defineConfig({
|
||
|
entry,
|
||
|
outDir: path.join(__dirname, 'lib'),
|
||
|
splitting: false,
|
||
|
sourcemap: false,
|
||
|
clean: true,
|
||
|
bundle: false,
|
||
|
skipNodeModulesBundle: true,
|
||
|
});
|