-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathtsdown.config.ts
More file actions
36 lines (33 loc) · 1.14 KB
/
tsdown.config.ts
File metadata and controls
36 lines (33 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { defineConfig } from 'tsdown';
export default defineConfig({
// Workspace configuration - builds all library packages from root
workspace: {
include: ['packages/*', 'plugins/*', 'tools/*', 'tegg/core/*', 'tegg/plugin/*', 'tegg/standalone/*'],
exclude: [
'packages/tsconfig', // Config-only package, no src to build
'packages/skills', // Pure markdown package, no src to build
'dist',
],
},
// Shared defaults
unused: {
level: 'error',
},
exports: {
devExports: true,
},
fixedExtension: false,
publint: {
level: 'suggestion',
strict: true,
// Default to npm pack so main CI (utoo env, no pnpm binary) works.
// E2E workflow overrides via PUBLINT_PACK=pnpm because running npm pack
// against pnpm's symlinked node_modules is ~10x slower per package.
pack: (process.env.PUBLINT_PACK as 'npm' | 'pnpm' | 'yarn' | 'bun' | undefined) ?? 'npm',
},
// Default entry pattern - glob to include all source files
entry: 'src/**/*.ts',
// should set unbundle and external together, avoid bundle @eggjs/* and egg packages
unbundle: true,
external: [/^@eggjs\//, 'egg'],
});