File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -2,19 +2,21 @@ import type { DtsGenerationConfig } from './types'
2
2
import process from 'node:process'
3
3
import { loadConfig } from 'bunfig'
4
4
5
+ export const defaultConfig : DtsGenerationConfig = {
6
+ cwd : process . cwd ( ) ,
7
+ root : './src' ,
8
+ entrypoints : [ '**/*.ts' ] ,
9
+ outdir : './dist' ,
10
+ keepComments : true ,
11
+ clean : true ,
12
+ tsconfigPath : './tsconfig.json' ,
13
+ outputStructure : 'mirror' ,
14
+ verbose : false ,
15
+ }
16
+
5
17
// Get loaded config
6
- // @ts -expect-error bunfig error due to current dtsx incompatibility (0009)
7
18
// eslint-disable-next-line antfu/no-top-level-await
8
19
export const config : DtsGenerationConfig = await loadConfig ( {
9
20
name : 'dts' ,
10
- defaultConfig : {
11
- cwd : process . cwd ( ) ,
12
- root : './src' ,
13
- entrypoints : [ '**/*.ts' ] ,
14
- outdir : './dist' ,
15
- keepComments : true ,
16
- clean : true ,
17
- tsconfigPath : './tsconfig.json' ,
18
- outputStructure : 'mirror' ,
19
- } ,
21
+ defaultConfig,
20
22
} )
Original file line number Diff line number Diff line change 1
- export { config } from './config'
1
+ export * from './config'
2
2
export * from './extract'
3
3
export * from './generate'
4
4
export * from './types'
You can’t perform that action at this time.
0 commit comments