UNPKG

@bleed-believer/path-alias

Version:
13 lines (12 loc) 725 B
import type { TsConfigJson } from 'get-tsconfig'; /** * Normalizes the given TypeScript configuration object by converting specific compiler option values to lowercase. * * This function ensures that the values of `compilerOptions.target`, `compilerOptions.module`, and `compilerOptions.moduleResolution` * in the provided `tsConfig` are converted to lowercase strings. This normalization helps prevent case-sensitivity issues * when processing the `tsconfig.json` file. * * @param tsConfig - The TypeScript configuration object to normalize. * @returns A new TypeScript configuration object with normalized compiler option values. */ export declare function normalizeTsConfig(tsConfig: TsConfigJson): TsConfigJson;