-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
tsup.config.ts
51 lines (49 loc) · 1.6 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
49
50
51
/*
* Copyright (c) 2014-2024 旋風之音 GoneTone
*
* Website: https://blog.reh.tw/
* GitHub: https://github.com/GoneTone
* Facebook: https://www.facebook.com/GoneToneDY
* Twitter: https://twitter.com/TPGoneTone
*
* Project GitHub: https://github.com/GoneToneStudio/node-get-youtube-id-by-url
*
* _oo0oo_
* o8888888o
* 88" . "88
* (| -_- |)
* 0\ = /0
* ___/`---'\___
* .' \\| |# '.
* / \\||| : |||# \
* / _||||| -:- |||||- \
* | | \\\ - #/ | |
* | \_| ''\---/'' |_/ |
* \ .-\__ '-' ___/-. /
* ___'. .' /--.--\ `. .'___
* ."" '< `.___\_<|>_/___.' >' "".
* | | : `- \`.;`\ _ /`;.`/ - ` : | |
* \ \ `_. \_ __\ /__ _/ .-` / /
* =====`-.____`.___ \_____/___.-`___.-'=====
* `=---='
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* 佛祖保佑 永無 BUG
*/
import { defineConfig } from 'tsup';
export default defineConfig({
entry: ['src/index.ts'],
external: [],
noExternal: [],
platform: 'node',
format: ['esm', 'cjs'],
target: 'es2020',
skipNodeModulesBundle: true,
clean: true,
shims: true,
minify: false,
splitting: false,
keepNames: true,
dts: true,
sourcemap: true,
esbuildPlugins: []
});