Skip to content

refactor(node): manage platform packages with npm workspaces - #69

Merged
zhenghaoz merged 3 commits into
mainfrom
refactor/node-workspaces-clap-test
Nov 6, 2026
Merged

zhenghaoz merged 3 commits into
mainfrom
refactor/node-workspaces-clap-test

Conversation

@zhenghaoz

@zhenghaoz zhenghaoz commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Define the four native platform packages as tracked npm workspaces instead of generating them with pack-node.py. Update release version synchronization, CI and maintainer documentation to pack the workspaces while preserving exact optional dependency versions and platform constraints.

Replace the previous Node fixture, API-surface and packaging test files with a real CLAP inference test matching rust/tests/clap.rs. The test imports the checkout directly with require('..'), downloads the quantized model through @huggingface/hub into the repository root, compares the dog audio against both descriptions, and releases the model afterward. Remove the unused test TypeScript configuration.

Exclude tests and audio fixtures from published packages. Remove installed-package testing and validate archive payloads, licenses, platform constraints and matching versions with validate-node-packages.py; release validation requires all four runtime archives. Also simplify the Rust README and update its badges.

Validation on macOS ARM64:

  • npm test passed against the checkout; dog score 0.9999998353, vacuum-cleaner score 0.0000001647.
  • Workspace packing and archive validation passed for the main package and macOS ARM64 runtime. Confirmed that --require-all rejects an incomplete release archive set.
  • Confirmed the main tarball contains only index.js, index.d.ts, README.md, LICENSE and package.json.
  • Release-script tests: 18 passed, 1 skipped (requires an external built Python wheel). Workflow YAML, job dependencies and whitespace checks passed.

Linux and Windows checkout inference remains covered by CI.

@zhenghaoz
zhenghaoz merged commit 2474476 into main Nov 6, 2026
10 checks passed
@zhenghaoz
zhenghaoz deleted the refactor/node-workspaces-clap-test branch November 6, 2026 15:35
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.

1 participant