Skip to content

Conversation

@nfischer
Copy link
Member

Prior to this change, there was a dependency cycle between shell.js and common.js. This refactors code to avoid the cycle.

This was previously reported in #1133. Node.js already worked around the issue in v20.6.1, but it's simpler if we can avoid the dependency cycle on our end anyway.

I tested this with npm test and also by running my own script which uses a shelljs plugin. This seems to work correctly in both cases.

Prior to this change, there was a dependency cycle between shell.js and
common.js. This refactors code to avoid the cycle.

This was previously reported in #1133. Node.js already worked around the
issue in v20.6.1, but it's simpler if we can avoid the dependency cycle
on our end anyway.

I tested this with `npm test` and also by running my own script which
uses a shelljs plugin. This seems to work correctly in both cases.
@codecov
Copy link

codecov bot commented Mar 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.37%. Comparing base (d43d915) to head (c2d2330).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1204   +/-   ##
=======================================
  Coverage   97.37%   97.37%           
=======================================
  Files          35       35           
  Lines        1408     1410    +2     
=======================================
+ Hits         1371     1373    +2     
  Misses         37       37           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nfischer nfischer merged commit 24ba6e2 into main Mar 26, 2025
20 checks passed
@nfischer nfischer deleted the refactor-dependency-cycle branch March 26, 2025 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants