Skip to content

Ship scripts/native-libraries.mjs in the package - #12

Merged
dashersw merged 1 commit into
mainfrom
fix/ship-native-libraries
Oct 24, 2026
Merged

dashersw merged 1 commit into
mainfrom
fix/ship-native-libraries

Conversation

@dashersw

@dashersw dashersw commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

scripts/build.mjs imports ./native-libraries.mjs (added in 122f06b, #11), but package.json files lists scripts one by one and doesn't include it. An installed node-compat fails every build with ERR_MODULE_NOT_FOUND.

Found by the compiler release suite's test/node-project.mjs, which packs this checkout, installs it and builds a project through it. It fails on main and passes with this change. npm pack --dry-run now lists the file.

Summary by CodeRabbit

  • Chores
    • Updated the published package contents to include an additional supporting file. This changes what is bundled in package releases; no changes to exported or public interfaces are reported.

122f06b moved the brotli and vcpkg library lookup into
scripts/native-libraries.mjs and imported it from build.mjs, but the
package's files list names each script individually and was not given
the new one. An installed node-compat therefore fails every build with
ERR_MODULE_NOT_FOUND before compiling anything.

Found by the compiler's release suite: test/node-project.mjs packs this
checkout, installs it beside the packed compiler and builds a project
through it. It failed on the missing module and passes with this change.
@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b2b6e827-84bf-401b-91e5-b5deca4376b2
Commits

Reviewing files that changed from the base of the PR and between 6bb33da and f643fa6.

Files selected for processing: 1
  • package.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The package’s published file list now includes scripts/native-libraries.mjs.

Changes: Package contents

Layer / File(s) Summary
Published file list
package.json
The published file list now includes scripts/native-libraries.mjs.

Priority: Normal

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Bug fix

Suggested reviewers: puskuruk

Merge Risk: Minimal · up to f643f

No actionable merge-blocking risk remains.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: including scripts/native-libraries.mjs in the published package.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dashersw
dashersw merged commit 6809630 into main Oct 24, 2026
3 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant