Repository navigation
build(napi): fix umbrella packaging (thin loader, no bundled .node) — 0.1.3 - #145
Merged
Merged
Conversation
….1.3 The published umbrella @databricks/databricks-sql-kernel@0.1.2 was broken: `require()` failed because the package bundled all 8 platform .node binaries (via `files: ["*.node"]`) with no working multi-package loader — empty optionalDependencies, binaries shipped inside the umbrella instead of as per-platform optional deps. Drop `*.node` from `files` so the umbrella ships only the generated loader (index.js / index.d.ts), matching @databricks/zerobus-ingest-sdk. Per-platform .node files are delivered via the separate @databricks/databricks-sql-kernel-<platform> optionalDependencies that `napi prepublish` wires up. Bump to 0.1.3 to republish the corrected umbrella (npm versions are immutable, so the fix ships as 0.1.3 with platform deps republished to match). Co-authored-by: Isaac Signed-off-by: Gopal Lal <gopal.lal@databricks.com>
msrathore-db
approved these changes
Jun 8, 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.
Summary
The published npm umbrella
@databricks/databricks-sql-kernel@0.1.2was unusable —require()failed (noindex.jsloader),optionalDependencieswas empty, and all 8 platform.nodebinaries were fat-bundled into the umbrella.This drops
*.nodefrom the umbrella'sfilesso it ships only the generated loader (index.js/index.d.ts), matching@databricks/zerobus-ingest-sdk. The per-platform.nodefiles are delivered via the separate@databricks/databricks-sql-kernel-<platform>optionalDependencies (wired by the release workflow).Bumped to 0.1.3 to republish the corrected packages (npm versions are immutable; the 0.1.2 umbrella stays broken on npm).
Paired with a release-repo workflow fix (deterministic optionalDependencies write + pack the loader) — the
napi prepublish --dry-runit used never wrote optionalDependencies and was publish-coupled.This pull request and its description were written by Isaac.