-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.config.ts
43 lines (40 loc) · 1.08 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
* @file Configuration - Build
* @module config/build
* @see https://github.com/flex-development/mkbuild
*/
import { defineBuildConfig, type Config } from '@flex-development/mkbuild'
import pkg from './package.json' assert { type: 'json' }
import tsconfig from './tsconfig.build.json' assert { type: 'json' }
/**
* Build configuration options.
*
* @const {Config} config
*/
const config: Config = defineBuildConfig({
charset: 'utf8',
dts: false,
external: [
'@mikro-orm/better-sqlite',
'@mikro-orm/mariadb',
'@mikro-orm/migrations-mongodb',
'@mikro-orm/mysql',
'@mikro-orm/postgresql',
'@mikro-orm/seeder',
'@mikro-orm/sqlite',
'@nestjs/microservices',
'@nestjs/mongoose',
'@nestjs/sequelize',
'@nestjs/typeorm',
'@nestjs/websockets',
'class-transformer/storage'
],
ignore: ['**/interfaces/**', '**/types/**'],
keepNames: true,
platform: 'node',
sourcemap: tsconfig.compilerOptions.sourceMap,
sourcesContent: false,
target: pkg.engines.node.replace(/^\D+/, 'node'),
tsconfig: 'tsconfig.build.json'
})
export default config