@@ -11,15 +11,12 @@ async function loadSpawnSync() {
|
||||
try {
|
||||
const m = await import('bare-subprocess')
|
||||
if (m && typeof m.spawnSync === 'function') return m.spawnSync
|
||||
if (m && m.default && typeof m.default.spawnSync === 'function') {
|
||||
return m.default.spawnSync
|
||||
}
|
||||
} catch {
|
||||
/* bare-subprocess missing or native addon unavailable */
|
||||
}
|
||||
try {
|
||||
const m = await import('child_process')
|
||||
if (m && typeof m.spawnSync === 'function') return m.spawnSync
|
||||
} catch {
|
||||
/* Node child_process unavailable */
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
@@ -41,8 +38,7 @@ function pipeText(r, key) {
|
||||
/**
|
||||
* When `pear.multisig.json` exists next to the kernel tree, validate shape and log status.
|
||||
* Mirrors Holepunch `pear-multisig-link` style metadata (operational hint, not cryptography).
|
||||
* Subprocess: prefers **`bare-subprocess`** (Pear/Bare); falls back to **`child_process`** on Node.
|
||||
* Do not use **`node:child_process`** — it is not resolvable under Bare.
|
||||
* Subprocess: **`bare-subprocess`** only (Bare/Pear). Do not import Node `child_process`.
|
||||
* @param {string} kernelRoot
|
||||
*/
|
||||
export async function logPearMultisigKernelHint(kernelRoot) {
|
||||
|
||||
Reference in New Issue
Block a user