8000 refactor: avoid dependency cycle by nfischer · Pull Request #1204 · shelljs/shelljs · GitHub
[go: up one dir, main page]

Skip to content

refactor: avoid dependency cycle #1204

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

Merged
merged 1 commit into from
Mar 26, 2025
Merged

refactor: avoid dependency cycle #1204

merged 1 commit into from
Mar 26, 2025

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.
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.

1 participant
0