Skip to content

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

Merged
merged 2 commits into from
Apr 17, 2023

Conversation

sheetalkamat
Copy link
Member

No description provided.

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
Copy link
Member Author

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'. ========
Copy link
Member Author

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'. ========
Copy link
Member Author

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

@sheetalkamat sheetalkamat merged commit 53d3787 into main Apr 17, 2023
@sheetalkamat sheetalkamat deleted the scopedPackageUpdate branch April 17, 2023 19:37
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