-
Notifications
You must be signed in to change notification settings - Fork 14
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
List all transitive dependencies for each tsconfig #1245
Comments
I did not see an existing lint rule that could help enforce this new requirement. I checked the rules at https://www.npmjs.com/package/eslint-plugin-import. I don't see an easy way to automatically update the tsconfig files from existing imports. Maybe we would write our own lint rule that checks that any import has a direct listing in It seems it would be much simpler to adopt the monolithic tsconfigs as described in #1243 (comment). As far as I understand, those have the following disadvanatges:
Project references are indicated for modularity and speed, but are causing more complications. Maybe it would be good to touch base at dev meeting before spending more time on this. |
In today's discussion, we agreed we would like to explore the monolithic tsconfig approach, but having @zepumph wants to time |
On my macbook air, the timing is like:
In experimenting with using I thought our tooling would need to change, but it turns out running |
From review with @zepumph:
Next steps
We also agreed that this seems like an improvement and we can commit/push and work on the improvements above as next steps.
My experience from writing transpiler.js was that it was much more efficient to specify the entry points where we expect code. Instead if a repo has other needs, it could be listed in package.json.
We have to keep
Would this be a new grunt task? |
I removed the stale code comment, closing. |
As described in microsoft/TypeScript#46153, project references are designed so that if a project imports from another project, it should be listed in the direct references (not transitively). According to the issue, that could address the false positives and false negatives we have been seeing.
This would be an alternative to the monolithic (one file/no project references) strategy or having to clean each time as described in #1243 (comment).
The text was updated successfully, but these errors were encountered: