-
Notifications
You must be signed in to change notification settings - Fork 20
/
tsup.config.ts
48 lines (47 loc) · 1.16 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
40
41
42
43
44
45
46
47
48
import { defineConfig } from 'tsup';
export default defineConfig({
entry: ['src/index.ts'], //include all files under src
format: ['esm', 'cjs'], // generate cjs and esm files
dts: true, // generate dts files
splitting: true,
sourcemap: true,
clean: true,
bundle: true,
legacyOutput: false,
external: [
// list all the dev dependencies, which do NOT need to be bundled as indicated in package.json (_devDependencies)
'@jest/globals',
'@types/esprima',
'@types/fs-extra',
'@types/jest',
'@types/lodash',
'@types/mock-fs',
'@types/node',
'@types/node-forge',
'@types/properties-reader',
'@types/uuid',
'@typescript-eslint/eslint-plugin',
'@typescript-eslint/parser',
'copyfiles',
'del',
'eslint',
'eslint-config-prettier',
'eslint-plugin-deprecation',
'eslint-plugin-import',
'eslint-plugin-jest',
'eslint-plugin-prettier',
'eslint-plugin-simple-import-sort',
'jest',
'jest-jasmine2',
'map-stream',
'mock-fs',
'prettier',
'rimraf',
'setup-polly-jest',
'ts-jest',
'tsup',
'typedoc',
'typedoc-plugin-missing-exports',
'typescript',
],
});