-
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): allow skipping lockfile for affected #23509
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit f1b930b. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 6 targets
Sent with 💌 from NxCloud. |
96032c6
to
f558a8c
Compare
f558a8c
to
931992a
Compare
@@ -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 |
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.
Remove
export function getPackageName(name: string) { | ||
if (name.startsWith('@')) { | ||
return name.split('/').slice(0, 2).join('/'); | ||
} | ||
return name.split('/')[0]; | ||
} |
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.
I believe we have this here. Could you move it somewhere and export it?
nx/packages/nx/src/plugins/js/project-graph/build-dependencies/target-project-locator.ts
Line 366 in ef0dc01
function parsePackageNameFromImportExpression( |
|
||
if ('packageName' in npmPackage.data) { | ||
if (globalPackages.has(npmPackage.data.packageName)) { | ||
touched.push(...Object.keys(projectGraph.nodes)); |
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.
We can return here.
931992a
to
f1b930b
Compare
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
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 #