Read compilerOptions.paths from tsconfig.json and convert to Volt aliases.
Automatically discovers tsconfig.json in the project root and maps
TypeScript path aliases (e.g. "@/*": ["./src/*"]) to the format
Volt's resolver expects.
Summary
Functions
Find and read tsconfig.json paths from the current working directory.
Read path aliases from tsconfig.json.
Functions
Find and read tsconfig.json paths from the current working directory.
Read path aliases from tsconfig.json.
Returns a map of alias prefix to filesystem path, e.g.:
%{"@" => "/absolute/path/to/src"}Glob suffixes (/*) are stripped from both keys and values.
The first path in each mapping array that is not a declaration file is used;
mappings that only point at declaration files (.d.ts) describe types and
are left to normal module resolution.