Open
Description
Acknowledgement
- I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.
Comment
@andrewbranch suggested that rootDirs
be deprecated in 6.0 (#54500 (comment)).
I started talking with @jakebailey about this and we decided that best action would be to discuss via an issue.
At Bloomberg, and I believe Google too. Heavy use of rootDirs
is made for the exact reason the docs show as an example, copied here for reference:
src
└── views
└── view1.ts (can import "./template1", "./view2`)
└── view2.ts (can import "./template1", "./view1`)
generated
└── templates
└── views
└── template1.ts (can import "./view1", "./view2")
{
"compilerOptions": {
"rootDirs": ["src/views", "generated/templates/views"]
}
}
The generated .d.ts
files are in a separate 'mirror' directory for source control reasons. But we want them to 'appear' to TypeScript as if they are sibling files so they are picked up by the module resolution.
Metadata
Metadata
Assignees
Labels
No labels