| 1 |
import type { Targets } from "@babel/helper-compilation-targets"; |
| 2 |
|
| 3 |
import type { ConfigContext } from "./config-chain"; |
| 4 |
import type { CallerMetadata } from "./validation/options"; |
| 5 |
|
| 6 |
export type { ConfigContext as FullConfig }; |
| 7 |
|
| 8 |
export type FullPreset = { |
| 9 |
targets: Targets; |
| 10 |
} & ConfigContext; |
| 11 |
export type FullPlugin = { |
| 12 |
assumptions: { [name: string]: boolean }; |
| 13 |
} & FullPreset; |
| 14 |
|
| 15 |
// Context not including filename since it is used in places that cannot |
| 16 |
// process 'ignore'/'only' and other filename-based logic. |
| 17 |
export type SimpleConfig = { |
| 18 |
envName: string; |
| 19 |
caller: CallerMetadata | undefined; |
| 20 |
}; |
| 21 |
export type SimplePreset = { |
| 22 |
targets: Targets; |
| 23 |
} & SimpleConfig; |
| 24 |
export type SimplePlugin = { |
| 25 |
assumptions: { |
| 26 |
[name: string]: boolean; |
| 27 |
}; |
| 28 |
} & SimplePreset; |