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

feat(core): include non-project files on fileMap and filesToProcess #19217

Merged

Conversation

AgentEnder
Copy link
Member

Current Behavior

filesToProcess doesn't include non project files, so there is no indication inside of createDependencies if one has changed. This leads to requiring custom caching and hashing behavior on the plugin side to avoid extra work.

Expected Behavior

filesToProcess includes non project files

Related Issue(s)

Fixes #

@vercel
Copy link

vercel bot commented Sep 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 19, 2023 10:04pm

Comment on lines 23 to 27
pub struct FileMap {
pub project_file_map: HashMap<String, Vec<FileData>>,
pub non_project_files: Vec<FileData>
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rm

);
const isProjectFileData = !!fileData;
fileData ??= getNonProjectFileData(sourceFile, this.allWorkspaceFiles);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
fileData ??= getNonProjectFileData(sourceFile, this.allWorkspaceFiles);
fileData ??= getNonProjectFileData(sourceFile, this.nonProjectFiles);

Copy link
Collaborator

@FrozenPandaz FrozenPandaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double check all of the createDependencies functions

@AgentEnder AgentEnder force-pushed the feat/include-non-project-files-on-filemap branch 2 times, most recently from b1ca553 to 0055f13 Compare September 19, 2023 21:50
@AgentEnder AgentEnder force-pushed the feat/include-non-project-files-on-filemap branch from 0055f13 to 8480d22 Compare September 19, 2023 21:54
@AgentEnder AgentEnder merged commit f213976 into nrwl:master Sep 20, 2023
15 checks passed
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants