Skip to content

fix(NODE-6642): include install script in published files#110

Open
axelonet wants to merge 1 commit intomongodb-js:mainfrom
axelonet:NODE-6642-build-from-source-package-files
Open

fix(NODE-6642): include install script in published files#110
axelonet wants to merge 1 commit intomongodb-js:mainfrom
axelonet:NODE-6642-build-from-source-package-files

Conversation

@axelonet
Copy link

Description

Summary of Changes

Fix npm install @mongodb-js/zstd --build-from-source failing because the install script referenced a file that was not shipped in the tarball

Notes for Reviewers

the install fallback path runs:

  • npm run clean-install
  • npm run install-zstd
  • bash etc/install-zstd.sh

Release Highlight

Release notes highlight

Double check the following

  • Lint is passing (npm run check:lint)
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@axelonet axelonet requested a review from a team as a code owner March 13, 2026 11:59
@PavelSafronov PavelSafronov added External Submission PR submitted from outside the team tracked-in-jira Ticket filed in MongoDB's Jira system labels Mar 16, 2026
@PavelSafronov
Copy link

@axelonet , thanks for the PR! The team will look into this fix.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a packaging issue in @mongodb-js/zstd where npm install ... --build-from-source could fail because the install script referenced a file that wasn’t included in the published tarball.

Changes:

  • Adds etc/install-zstd.sh to the files allowlist so it is shipped in the npm package.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines 7 to 13
"files": [
"index.d.ts",
"lib/index.js",
"addon/*",
"binding.gyp"
"binding.gyp",
"etc/install-zstd.sh"
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

External Submission PR submitted from outside the team tracked-in-jira Ticket filed in MongoDB's Jira system

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants