native: move Zig sources into packages/native (#1391)

Separate the native implementation from the TypeScript bindings. Keep
core on
the public bindings and keep the current native artifact packages and
release
workflows.

packages/native owns the Zig source, tests, benches, and vendor updates.
The
package is private and unpublished for now Core still packages the
@opentui/core-* artifacts. build:native, test:native, and bench:native
still
work from core and delegate to native.

Expose a Zig import root and a no-JS hello example for proof of concept,
not a focus point, just a smoke test.
This commit is contained in:
Simon Klee
2026-08-20 11:34:03 +02:00
committed by GitHub
parent 2417a2c0b7
commit 6dec16a77c
301 changed files with 366 additions and 114 deletions
+6
View File
@@ -92,6 +92,10 @@
"solid-js",
],
},
"packages/native": {
"name": "@opentui/native",
"version": "0.5.4",
},
"packages/qrcode": {
"name": "@opentui/qrcode",
"version": "0.5.4",
@@ -560,6 +564,8 @@
"@opentui/keymap": ["@opentui/keymap@workspace:packages/keymap"],
"@opentui/native": ["@opentui/native@workspace:packages/native"],
"@opentui/qrcode": ["@opentui/qrcode@workspace:packages/qrcode"],
"@opentui/react": ["@opentui/react@workspace:packages/react"],