tsconfig paths not work if dir name start with dot.
TypeScript Version: 3.7.3
Search Terms:
Code
./.temp/test
export enum Test {
test
}
The following code does not work
import { Test } from '@temp/test'
paths: {
"@temp/*": [
"./.temp/*"
]
}
Expected behavior:
import not error tips.
Actual behavior:

Playground Link:
Related Issues:
This seems to work perfectly fine. Both when running tsc and ts-node (with tsconfig-paths registered).
However, there is something around how glob works with folders starting with a dot that makes it harder to work with them. The important point might be to have the ./.folder/**/* added to your include section in tsconfig (even though it seems to work without it for me too). Also, you might want to try adding "baseUrl": "." to your tsconfig.
I detected a problem in my project where Storybook configuration files were not being type-checked because they are located in ./.storybook. This solved it for me:
"include": ["src", ".storybook/**/*"],