You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fixed export of release/test/util in #539 helped consumers access the test utils again (thank you!). Using an extensionless export, however, has complicated compatibility across multiple release-it versions. Pure ESM release-it plugins, when testing using ava, will error with extensionless sub-paths.
> release-it-lerna-changelog@4.0.1 test /home/runner/work/release-it-lerna-changelog/release-it-lerna-changelog
> ava
Uncaught exception in test.js
Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import '/home/runner/work/release-it-lerna-changelog/release-it-lerna-changelog/node_modules/release-it/test/util' is not supported resolving ES modules imported from /home/runner/work/release-it-lerna-changelog/release-it-lerna-changelog/test.js
Did you mean to import release-it-lerna-changelog/release-it-lerna-changelog/node_modules/release-it/test/util/index.js?
✖ test.js exited with a non-zero exit code: 1
This change slightly adjusts the exports in this repo's package.json in order to expose the required test utilities to consumers.
While it works to provide the alias within release-it@529bc1f, it's slightly confusing to consumers who expect the export to map to a real path on disc.
Relates to release-it#920 and tweaks release-it@529bc1f to use correct path.
This change slightly adjusts the exports in this repo's package.json in order to expose the required test utilities to consumers.
While it works to provide the alias within 529bc1f, it's slightly confusing to consumers who expect the export to map to a real path on disc.
Relates to #920 and tweaks 529bc1f to use correct path.
The fixed export of
release/test/util
in #539 helped consumers access the test utils again (thank you!). Using an extensionless export, however, has complicated compatibility across multiplerelease-it
versions. Pure ESMrelease-it
plugins, when testing usingava
, will error with extensionless sub-paths.https://github.com/rwjblue/release-it-lerna-changelog/runs/7347409577?check_suite_focus=true
The Node documentation encourages the use of extension-based exports when those exports point to a single file, as is the case here. I've tested converting the package's exports to use an extension instead of a sub-path, and it ensures correct compatibility across
release-it
versions 14-latest (15.1.1).Change:
If you'd be open to it, I'll open a PR making that change in the latest version.
The text was updated successfully, but these errors were encountered: