@bleed-believer/path-alias
Version:
Assign path alias using tsconfig.json file
13 lines (12 loc) • 725 B
TypeScript
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;