-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtsup.config.ts
More file actions
38 lines (38 loc) · 951 Bytes
/
tsup.config.ts
File metadata and controls
38 lines (38 loc) · 951 Bytes
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
import { defineConfig } from "tsup"
export default defineConfig([
{
entry: ["lib/dsl/index.ts"],
format: ["esm", "cjs"],
dts: true,
sourcemap: true,
clean: true,
external: ["express", "mocha", "jest", "chalk", "supertest"],
outDir: "build",
target: "node20",
platform: "node",
splitting: false,
treeshake: true,
minify: false,
metafile: false,
noExternal: ["consola"],
},
{
entry: ["bin/index.ts"],
format: ["esm"],
dts: false,
sourcemap: false,
clean: false,
outDir: "build/bin",
target: "node20",
platform: "node",
banner: { js: "#!/usr/bin/env node" },
external: [
"debug",
"supports-color",
"tty",
"@babel/parser",
"@babel/types",
"@babel/traverse",
],
},
])