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.
Only the first path in each mapping array is used.