This makes template file paths all relative to /templates/ and removes a lot of __dirname usages.
It allows source files to be moved around using TypeScript refactoring without breaking template paths.
Note that unlike #7332, moving template files themselves still requires manually updating string literals. (I've considered adding manifest files to templates but gave up since /templates are not in /src.)
Scenarios Tested
See integration tests. Not every change is covered by tests though -- we may have to rely on careful code reviews on others.
Description
This makes template file paths all relative to
/templates/
and removes a lot of__dirname
usages.It allows source files to be moved around using TypeScript refactoring without breaking template paths.
Note that unlike #7332, moving template files themselves still requires manually updating string literals. (I've considered adding manifest files to templates but gave up since
/templates
are not in/src
.)Scenarios Tested
See integration tests. Not every change is covered by tests though -- we may have to rely on careful code reviews on others.
Sample Commands
N/A