-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat(core): add WorkspaceContext class #18999
feat(core): add WorkspaceContext class #18999
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
20f147b
to
c1bee5b
Compare
79fb42e
to
9b7fc60
Compare
packages/nx/src/daemon/server/project-graph-incremental-recomputation.ts
Outdated
Show resolved
Hide resolved
9b7fc60
to
5a5e012
Compare
@@ -437,6 +435,14 @@ class TaskHasherImpl { | |||
return partialHashes; | |||
} | |||
|
|||
private hashFiles(files: string[]): Map<string, string> { |
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.
Let's rename this to hashOutputFile
in a followup PR so that people are less likely to use this for getting hashes of workspace files.
Nice job :) This is awesome! |
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
There are certain points of the nx project graph life cycle where we keep trying to walk the directory to get information. Particularly for project configurations and file hashes.
Expected Behavior
There is now one central point where the file system (with respecting .gitignores and .nxignore) is stored in memory. This allows following calls to hit the memory file system, rather than have to traverse the system each time.
Related Issue(s)
Fixes #