chore: normalize main field to ./lib in array/base and array/float16 package.json#12110
Merged
Conversation
Change `"main": "lib/index.js"` to `"main": "./lib"` to match the canonical form used by 101 of the 103 packages in `@stdlib/array` (98% conformance). Node's module resolution treats both values identically (`./lib` resolves to `./lib/index.js`); the change is purely a metadata normalization with no behavioral impact.
Change `"main": "./lib/index.js"` to `"main": "./lib"` to match the canonical form used by 101 of the 103 packages in `@stdlib/array` (98% conformance). Node's module resolution treats both values identically (`./lib` resolves to `./lib/index.js`); the change is purely a metadata normalization with no behavioral impact.
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
kgryte
approved these changes
May 13, 2026
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.
Description
This pull request:
mainfield in two@stdlib/arraypackages to the canonical"./lib"form used by 101 of the 103 packages in the namespace (98% conformance). Node's module resolution treats"./lib","lib/index.js", and"./lib/index.js"identically — all three resolve to./lib/index.js— so the change is purely metadata normalization with no behavioral impact.@stdlib/array/basemainwas"lib/index.js"(missing leading./and full path). Changed to"./lib". 98% namespace conformance.@stdlib/array/float16mainwas"./lib/index.js"(full path rather than directory). Changed to"./lib". 98% namespace conformance.Related Issues
This pull request has no related issues.
Questions
No.
Other
Verified post-edit with
require.resolve(): both packages still resolve to./lib/index.js. No test, source file, or stdlib tooling compares the literalmainvalue as a string —tools/.../create_namespace_types.jsoperates on the resolved absolute path fromrequire.resolve(), which is unaffected.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was produced by Claude Code running a namespace drift-detection routine: extract structural and semantic features from every package in a randomly selected
@stdlibnamespace, compute per-feature majority patterns at a 75% threshold, and propose corrections for outliers. Both deviations were independently verified by separate sonnet validation agents (structural-review and cross-reference) before any edits were made.@stdlib-js/reviewers
Generated by Claude Code