-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions-read-tsconfig.mts
69 lines (62 loc) · 1.43 KB
/
options-read-tsconfig.mts
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/**
* @file Interfaces - ReadTsconfigOptions
* @module tsconfig-utils/interfaces/ReadTsconfigOptions
*/
import type {
GetSourceOptions,
MainField,
ModuleId
} from '@flex-development/mlly'
import type { Condition } from '@flex-development/pkg-types'
/**
* Options for reading tsconfig files.
*
* @see {@linkcode GetSourceOptions}
*
* @extends {GetSourceOptions}
*/
interface ReadTsconfigOptions extends GetSourceOptions {
/**
* List of export/import conditions.
*
* > 👉 **Note**: Should be sorted by priority.
*
* @see {@linkcode Condition}
* @see https://nodejs.org/api/packages.html#conditional-exports
*
* @default mlly.defaultConditions
*/
conditions?: Condition[] | Set<Condition> | null | undefined
/**
* URL of current working directory.
*
* @see {@linkcode ModuleId}
*
* @default mlly.cwd()
*/
cwd?: ModuleId | null | undefined
/**
* List of legacy `main` fields.
*
* > 👉 **Note**: Should be sorted by priority.
*
* @see {@linkcode MainField}
*
* @default mlly.defaultMainFields
*/
mainFields?: MainField[] | Set<MainField> | null | undefined
/**
* Parent module id.
*
* @see {@linkcode ModuleId}
*
* @default
* cwd ?? mlly.cwd()
*/
parent?: ModuleId | null | undefined
/**
* Keep symlinks instead of resolving them.
*/
preserveSymlinks?: boolean | null | undefined
}
export type { ReadTsconfigOptions as default }