Skip to content

Conversation

@nfischer
Copy link
Member

@nfischer nfischer commented Mar 9, 2025

No change to logic. shx has a dependency on shelljs/package.json so that it can read the ShellJS version number. This is useful for shx and probably harmless for other packages (we need to ship the package.json file anyway), so this adds it to the exports list as an optional export.

Fixes #1195
Test: I ran shx --version with this copy of shelljs as the dependency

No change to logic. shx has a dependency on shelljs/package.json so that
it can read the ShellJS version number. This is useful for shx and
probably harmless for other packages (we need to ship the package.json
file anyway), so this adds it to the exports list as an optional export.

Fixes #1195
Test: I ran `shx --version` with this copy of shelljs as the dependency
@nfischer nfischer added the fix Bug/defect, or a fix for such a problem label Mar 9, 2025
@codecov
Copy link

codecov bot commented Mar 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.37%. Comparing base (8c3c2ac) to head (00c96a2).
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1200   +/-   ##
=======================================
  Coverage   97.37%   97.37%           
=======================================
  Files          35       35           
  Lines        1408     1408           
=======================================
  Hits         1371     1371           
  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 0a47587 into master Mar 9, 2025
20 checks passed
nfischer added a commit to shelljs/shx that referenced this pull request Mar 17, 2025
This is a small fix for the `--version` flag. This adds back ShellJS
version number, which was re-exposed in PR shelljs/shelljs#1200. This
reverts one of the workarounds added in PR #228.

This also commits package-lock.json to the repo.
nfischer added a commit to shelljs/shx that referenced this pull request Mar 17, 2025
This is a small fix for the `--version` flag. This adds back ShellJS
version number, which was re-exposed in PR shelljs/shelljs#1200. This
reverts one of the workarounds added in PR #228.

This also commits package-lock.json to the repo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Bug/defect, or a fix for such a problem low priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ERR_PACKAGE_PATH_NOT_EXPORTED for shelljs/plugin and shelljs/global

2 participants