-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsdown.config.ts
More file actions
39 lines (38 loc) · 930 Bytes
/
tsdown.config.ts
File metadata and controls
39 lines (38 loc) · 930 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
39
import { defineConfig } from 'tsdown'
import { codecovVitePlugin } from '@codecov/vite-plugin'
export default defineConfig([
{
entry: 'src/lib/index.ts',
platform: 'browser',
format: 'esm',
publint: true,
plugins: [
codecovVitePlugin({
enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined,
bundleName: 'index.js',
uploadToken: process.env.CODECOV_TOKEN,
telemetry: false,
}),
],
},
{
entry: 'src/cli/cli.ts',
platform: 'node',
format: 'esm',
dts: false,
publint: true,
// The CLI references the Core via 'external' reference to prevent it
// from ending up as duplicate code in cli.js
deps: {
neverBundle: ['@projectwallace/css-code-coverage'],
},
plugins: [
codecovVitePlugin({
enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined,
bundleName: 'cli.js',
uploadToken: process.env.CODECOV_TOKEN,
telemetry: false,
}),
],
},
])