Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[heft] Ensure rootDir is consistently specified in tsconfig. #2379

Merged
merged 3 commits into from
Dec 4, 2020

Conversation

halfnibble
Copy link
Contributor

Summary

Ensure the "rootDir" setting, which sets the root source directory and can impact output folder structure, is consistently specified in all tsconfig.json files, including build rig profiles.

In places where "rootDirs" virtual directories are necessary for typings folders, ensure the source directory is specified both in "rootDirs" and "rootDir".

Details

Basically, through trial and error, I determined that not setting the "rootDir" property can effect the output folder structure if the root source directory does not contain any TypeScript files. It appears that "rootDir" and "rootDirs" are actually not closely related and "src" needs to be in "rootDir" at a minimum. The "src" directory must also be in "rootDirs" if that setting is added to specify one or more virtual directories (e.g. for "loc-json-ts" and "sass-ts").

How it was tested

On a work project. Plus it builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants