-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.config.ts
26 lines (23 loc) · 687 Bytes
/
build.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
/**
* @file Configuration - Build
* @module config/build
* @see https://github.com/flex-development/mkbuild
*/
import { defineBuildConfig, type Config } from '@flex-development/mkbuild'
import tsconfig from './tsconfig.build.json' assert { type: 'json' }
/**
* Build configuration options.
*
* @const {Config} config
*/
const config: Config = defineBuildConfig({
charset: 'utf8',
entries: [
{ dts: false, pattern: ['internal/*'] },
{ dts: 'only', ignore: ['internal/*'] },
{ dts: false, pattern: ['*.ts', 'enums/*', 'errors/*', 'utils/*'] }
],
target: ['node18', tsconfig.compilerOptions.target],
tsconfig: 'tsconfig.build.json'
})
export default config