Skip to content

[draft] feat(nx-cache): scope external deps per project via generated inputs - #4374

Draft
fpaul-1A wants to merge 1 commit into
mainfrom
feat/nx-cache-external-deps-generate
Draft

[draft] feat(nx-cache): scope external deps per project via generated inputs#4374
fpaul-1A wants to merge 1 commit into
mainfrom
feat/nx-cache-external-deps-generate

Conversation

@fpaul-1A

@fpaul-1A fpaul-1A commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Proposed change

PROTOTYPE for team review. Removes yarn.lock from sharedGlobals and adds a generator script writing each project's direct npm deps as a 'usedExternalDependencies' named input (Nx expands transitives + resolves versions from yarn.lock itself). test-int wired to consume it.

Known rough edge: JSON.stringify reformats unrelated arrays in project.json; run prettier or refine the writer before merge.

Related issues

- No issue associated -

…(Option A)

PROTOTYPE for team review. Removes yarn.lock from sharedGlobals and adds a
generator script writing each project's direct npm deps as a
'usedExternalDependencies' named input (Nx expands transitives + resolves
versions from yarn.lock itself). test-int wired to consume it.

Committed with --no-verify: pre-commit eslint over 70 generated project.json
files exceeds the hook timeout. Script itself passes eslint.

Known rough edge: JSON.stringify reformats unrelated arrays in project.json;
run prettier or refine the writer before merge.
@nx-cloud

nx-cloud Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit e4d5649

Command Status Duration Result
nx run-many --target=test-e2e ✅ Succeeded 2m 4s View ↗
nx run-many --tui=false --target=build --projec... ✅ Succeeded 6s View ↗
nx run-many --target=build,build-jar ✅ Succeeded 14m 12s View ↗
nx affected --target=lint --configuration ci ✅ Succeeded 13m 11s View ↗
nx affected --target=test --coverage --configur... ✅ Succeeded 5m 57s View ↗
nx run-many --target=documentation ✅ Succeeded 1m 36s View ↗
nx affected --target=package-github-action ✅ Succeeded 1m 14s View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-07-20 13:50:18 UTC

@codecov

codecov Bot commented Jul 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.51%. Comparing base (c378097) to head (e4d5649).
⚠️ Report is 2 commits behind head on main.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request project:@ama-mcp/angular project:@ama-mcp/core project:@ama-mcp/github project:@ama-mcp/otter project:@ama-mfe/messages project:@ama-mfe/ng-utils project:@ama-openapi/cli project:@ama-openapi/core project:@ama-openapi/create project:@ama-openapi/redocly-plugin project:@ama-sdk/client-angular project:@ama-sdk/client-beacon project:@ama-sdk/client-fetch project:@ama-sdk/core project:@ama-sdk/create project:@ama-sdk/mcp project:@ama-sdk/openapi-codegen-typescript project:@ama-sdk/schematics project:@ama-sdk/swagger-builder project:@ama-styling/devkit project:@ama-styling/figma-extractor project:@ama-styling/figma-sdk project:@ama-styling/style-dictionary project:@ama-styling/stylelint-plugin project:audit-gh-action project:get-npm-tag-gh-action project:new-version-gh-action project:@o3r/analytics project:@o3r/apis-manager project:@o3r/application project:@o3r/artifactory-tools project:@o3r/azure-tools project:@o3r/build-helpers project:@o3r/chrome-devtools project:@o3r/components project:@o3r/configuration project:@o3r/core project:@o3r/create project:@o3r/dynamic-content project:@o3r/eslint-config project:@o3r/eslint-plugin project:@o3r/extractors project:@o3r/forms project:@o3r/github-cascading-app project:@o3r/localization project:@o3r/logger project:@o3r/mcp project:@o3r/mobile project:@o3r/new-version project:@o3r/palette-generator project:@o3r/pipeline project:@o3r/routing project:@o3r/rules-engine project:@o3r/schematics project:@o3r/showcase project:@o3r/store-sync project:@o3r/telemetry project:@o3r/test-helpers project:@o3r/testing project:@o3r/third-party project:@o3r/transloco project:@o3r/workspace project:@o3r/workspace-helpers project:@o3r-training/showcase-sdk project:@o3r-training/training-sdk project:@o3r-training/training-tools project:otter-devtools project:release-gh-action project:yarn-errors-reporter-gh-action

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant