Skip to content

build(napi): fix umbrella packaging (thin loader, no bundled .node) — 0.1.3 - #145

Merged
gopalldb merged 1 commit into
mainfrom
ci/napi-umbrella-files
Jun 8, 2026
Merged

gopalldb merged 1 commit into
mainfrom
ci/napi-umbrella-files

Conversation

@gopalldb

@gopalldb gopalldb commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

The published npm umbrella @databricks/databricks-sql-kernel@0.1.2 was unusable — require() failed (no index.js loader), optionalDependencies was empty, and all 8 platform .node binaries were fat-bundled into the umbrella.

This drops *.node from the umbrella's files so it ships only the generated loader (index.js / index.d.ts), matching @databricks/zerobus-ingest-sdk. The per-platform .node files 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-run it used never wrote optionalDependencies and was publish-coupled.

This pull request and its description were written by Isaac.

….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>
@gopalldb
gopalldb added this pull request to the merge queue Jun 8, 2026
Merged via the queue into main with commit 56b5e86 Jun 8, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants