build(desktop): stage get-windows like node-pty

get-windows@9.3.0 (MIT, zero runtime deps on macOS/Linux) is external to the
esbuild bundle and staged into dist/node_modules per target platform: the
universal Swift helper on macOS, the prebuilt N-API binding on Windows
(fail-closed magic-byte validation), nothing on Linux (xprop at runtime).
The staged lib/windows.js is rewritten to load the binding directly so
@mapbox/node-pre-gyp's tree stays out of the package.
This commit is contained in:
Brooklyn Nicholson
2026-08-07 22:27:42 -05:00
committed by brooklyn!
parent f22ae72921
commit f463a7e8ee
5 changed files with 1818 additions and 34 deletions
+1675 -31
View File
File diff suppressed because it is too large Load Diff