Repository navigation
feat: support per-function imports like es-toolkit/array/chunk - #2173
Merged
Merged
Conversation
Expose `es-toolkit/{category}/{function}` subpaths through wildcard
exports that point straight at the unbundled dist files, exclude internal
subdirectories with `null` exports, and verify every entry point in
postbuild.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
raon0211
pushed a commit
that referenced
this pull request
Nov 5, 2026
…list #2173 added wildcard exports such as ./array/* to publishConfig.exports, but the tarball entrypoint test still expected the previous list, so the test job on main has been failing.
raon0211
added a commit
that referenced
this pull request
Nov 5, 2026
…nd-to-end (#2182) * test[check-dist]: include per-function subpath exports in entrypoint list #2173 added wildcard exports such as ./array/* to publishConfig.exports, but the tarball entrypoint test still expected the previous list, so the test job on main has been failing. * test[check-dist]: verify blocked and wildcard subpath exports Assert that the internal subpaths excluded with a null export are the expected ones and cannot be resolved from the installed tarball, and exercise each wildcard entrypoint through one of its modules in the CJS/ESM parity check. * test[check-dist]: keep ENTRYPOINTS and BLOCKED_ENTRYPOINTS disjoint ENTRYPOINTS now lists only what can be loaded; subpaths excluded with a null export live only in BLOCKED_ENTRYPOINTS. The packed exports are split by null-ness and compared against each list. * test[check-dist]: install the packed tarball with fixture-kit and load every entrypoint end-to-end Each test now installs the packed tarball into a fresh @fixture-kit/core fixture via npm, runs plain Node.js scripts inside it, and removes the directory afterwards. The entrypoint test requires and imports every loadable entrypoint (including one module per wildcard) and checks that each exports something identical in CJS and ESM. The tar-based package.json extraction and the hand-rolled tmpdir helper are replaced by reading node_modules/es-toolkit from the fixture. * test[check-dist]: dispose fixtures with await using * test[check-dist]: use replaceAll when expanding wildcard entrypoints --------- Co-authored-by: T3 Code Service User <t3code@raonserver-t3code.Maxio>
Merged
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Expose
es-toolkit/{category}/{function}subpaths through wildcard exports that point straight at the unbundled dist files, exclude internal subdirectories withnullexports, and verify every entry point in postbuild.