Skip to content

@W-23751548: Pack Node bindings as unscoped dataweave-native platform packages - #168

Open
mlischetti wants to merge 15 commits into
masterfrom
node-npm-platform-packages
Open

@W-23751548: Pack Node bindings as unscoped dataweave-native platform packages#168
mlischetti wants to merge 15 commits into
masterfrom
node-npm-platform-packages

Conversation

@mlischetti

@mlischetti mlischetti commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Prepare Node artifacts for a later npm promote (PDK-style unscoped name, no publish in this PR).

  • Meta package dataweave-native plus optional dataweave-native-{linux-x64,win32-x64,darwin-arm64}
  • Loader finds in-tree addon, then optional platform package; dwlib next to the resolved addon
  • buildNodePackage emits versioned tgz (nativeVersion); CI uploads platform tgz per OS and meta from Linux only
  • Docs: npm install dataweave-native; published platforms exclude darwin-x64

Test plan

  • ./gradlew native-lib:nodePackTest -PskipNodeTests=false
  • cd native-lib/node && npx vitest run --project unit tests/unit/addon-path.test.ts tests/unit/utils.test.ts
  • CI main.yml Node legs: three platform tgz + one meta on Linux

@mlischetti
mlischetti requested a review from a team as a code owner August 27, 2026 23:30
cmd /c with a quoted absolute path made npm look under cwd for a
literal quoted directory. Pass npm pack args separately. Drop the
accidental SDD task report from the branch.
Windows join() uses backslashes, so tests that asserted POSIX
/opt/plat/dwlib.so never matched existsSync and failed nodeTest.
@mlischetti mlischetti changed the title Pack Node bindings as unscoped dataweave-native platform packages @W-23751548: Pack Node bindings as unscoped dataweave-native platform packages Aug 28, 2026
Use require.resolve so path resolution does not dlopen the addon.
Cross-link SUPPORTED_NATIVE_PACKAGES with the pack script list.
Backslash continuation is not portable to cmd.exe or PowerShell.
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