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): allow skipping lockfile for affected #23509

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

AgentEnder
Copy link
Member

Current Behavior

We consider the full lockfile when determining affected projects

Expected Behavior

There is a way to opt into the smarter affected logic as well keep the full-lockfile for partial projects

Related Issue(s)

Fixes #

@AgentEnder AgentEnder requested a review from a team as a code owner May 17, 2024 20:46
Copy link

vercel bot commented May 17, 2024

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

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Jun 4, 2024 8:19pm

@AgentEnder AgentEnder force-pushed the feat/smart-lockfile-affected branch 4 times, most recently from 96032c6 to f558a8c Compare May 24, 2024 18:37
@AgentEnder AgentEnder force-pushed the feat/smart-lockfile-affected branch from f558a8c to 931992a Compare May 31, 2024 22:19
@@ -303,7 +303,7 @@ const handleWorkspaceChanges: FileWatcherCallback = async (
let error = typeof err === 'string' ? new Error(err) : err;
serverLogger.watcherLog(
'Unexpected workspace watcher error',
error.message
error?.message
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove

Comment on lines 100 to 105
export function getPackageName(name: string) {
if (name.startsWith('@')) {
return name.split('/').slice(0, 2).join('/');
}
return name.split('/')[0];
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe we have this here. Could you move it somewhere and export it?


if ('packageName' in npmPackage.data) {
if (globalPackages.has(npmPackage.data.packageName)) {
touched.push(...Object.keys(projectGraph.nodes));
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can return here.

@AgentEnder AgentEnder merged commit cda799b into master Jun 4, 2024
6 checks passed
@AgentEnder AgentEnder deleted the feat/smart-lockfile-affected branch June 4, 2024 22:15
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.

None yet

2 participants