nocobase2/packages/core/build/tsup.config.ts
jack zhang 9e5e96b9e4
fix: improve build (#2643)
* fix: client lib require wrapper

* fix: bug

* fix: add tsconfig.paths.json

* fix: collection dir not exists

* fix: improve...

* fix: update yarn.lock

* fix: db.sync

* fix: bugs

* fix: bugs

* fix: bugs

* fix: bugs && allow user custom build config

* docs: user custom config docs

* refactor: custom user build config

* fix: bugs

* fix: build plugin-client bug

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-09-15 08:51:20 +08:00

21 lines
477 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,
silent: true,
sourcemap: false,
clean: true,
bundle: false,
loader: {
'.d.ts': 'copy'
},
skipNodeModulesBundle: true,
});