-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.config.mts
More file actions
43 lines (41 loc) · 851 Bytes
/
build.config.mts
File metadata and controls
43 lines (41 loc) · 851 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
40
41
42
43
/**
* @file Configuration - Build
* @module config/build
*/
import { defineBuildConfig, type Config } from '@flex-development/mkbuild'
import tsconfig from './tsconfig.build.json' with { type: 'json' }
/**
* Build configuration.
*
* @type {Config}
*/
export default defineBuildConfig({
esbuild: {
target: ['node18', tsconfig.compilerOptions.target]
},
resolve: {
conditions: tsconfig.compilerOptions.customConditions
},
tasks: [
{
dts: 'only',
input: [
'src/*.mts',
'src/interfaces/*.mts',
'src/types/*.mts',
'src/utils/*.mts'
]
},
{
dts: false,
input: [
'!src/internal/*.d.mts',
'src/*.mts',
'src/internal/*.mts',
'src/plugins/*.mts',
'src/utils/*.mts'
]
}
],
tsconfig: 'tsconfig.build.json'
})