As per the typescript docs, one can specify multiple mappings which are tried in turn such as
"paths": {
"Types/*": ["../shared/src/types/*", "./src/types/*"],
}
Unfortunately, alias-hq outputs
// alias-hq.get("webpack")
{
Types: '/absolute-path-to-repo/shared/src/types'
}
// alias-hq.get("jest")
{
'^Types/(.*)$': '<rootDir>/../shared/src/types/$1'
}
Which leads to the failing to resolve imports if the file is in the second directory, namely ./src/types/.
The docs of both tools say you can also pass arrays.
Can we get support for this?
As per the typescript docs, one can specify multiple mappings which are tried in turn such as
Unfortunately,
alias-hqoutputsWhich leads to the failing to resolve imports if the file is in the second directory, namely
./src/types/.The docs of both tools say you can also pass arrays.
Can we get support for this?