-
Notifications
You must be signed in to change notification settings - Fork 13.2k
When installing unrelated package inside scoped packages dont invalidate resolutions from everything in the scoped package #53873
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
Conversation
…ate resolutions from everything in the scoped package
8061bfa to
ac9f51e
Compare
| Scheduling update | ||
| Elapsed:: *ms DirectoryWatcher:: Triggered with /user/username/projects/myproject/node_modules/@myapp/unrelated2/index.d.ts :: WatchInfo: /user/username/projects/myproject 1 undefined Wild card directory | ||
| Reloading new file names and options | ||
| Synchronizing program |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before this change this would cause use to invalidate resolution for ts-types as well and we would re-resolve it. Because everything in @myapp was marked as something to invalidate because of above directory watcher invoke instead of marking eberything in @myapp/unrelated2
| CreatingProgramWith:: | ||
| roots: ["/user/username/projects/myproject/lib/app.ts"] | ||
| options: {"watch":true,"project":"/user/username/projects/myproject","traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} | ||
| ======== Resolving module '@myapp/ts-types' from '/user/username/projects/myproject/lib/app.ts'. ======== |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is re-resolved here because node_modules get created.
| CreatingProgramWith:: | ||
| roots: ["/user/username/projects/myproject/lib/app.ts"] | ||
| options: {"watch":true,"project":"/user/username/projects/myproject","traceResolution":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} | ||
| ======== Resolving module '@myapp/ts-types' from '/user/username/projects/myproject/lib/app.ts'. ======== |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-resolve is becuse "@myapp" is created in node_modules
No description provided.