forked from rockcarver/frodo-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsup.config.ts
39 lines (38 loc) · 1.03 KB
/
tsup.config.ts
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
37
38
39
import { defineConfig } from 'tsup';
export default defineConfig({
entry: ['src/app.ts', 'src/launch.ts', 'src/loader.ts'], //include all files under src
format: ['cjs'], // generate cjs files only
dts: true, // generate dts files
splitting: true,
sourcemap: true,
clean: true,
bundle: true,
shims: true, // this will properly transpile 'import.meta.url'
external: [
// list all the dev dependencies, which do NOT need to be bundled as indicated in package.json (_devDependencies)
'@types/colors',
'@types/fs-extra',
'@types/jest',
'@types/node',
'@typescript-eslint/eslint-plugin',
'@typescript-eslint/parser',
'@yao-pkg/pkg',
'copyfiles',
'del',
'eslint',
'eslint-config-prettier',
'eslint-plugin-deprecation',
'eslint-plugin-import',
'eslint-plugin-jest',
'eslint-plugin-jsx-a11y',
'eslint-plugin-prettier',
'eslint-plugin-simple-import-sort',
'jest',
'map-stream',
'prettier',
'rimraf',
'ts-jest',
'tsup',
'typescript',
],
});