mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 07:27:04 +00:00
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,
|
||
|
});
|