From 2c1ada44b02736290a3b4d9802c8a171b0131e7c Mon Sep 17 00:00:00 2001 From: Jinwoo-H Date: Thu, 27 Aug 2026 20:24:23 -0400 Subject: [PATCH] fix(windows): use local node-addon-api gyp path --- .../@vscode__windows-process-tree@0.8.0.patch | 2 +- .../build-windows-process-tree-relay-addon.mjs | 17 ++++++++++------- .../windows-process-tree-gyp-path.test.mjs | 11 ++++++----- pnpm-lock.yaml | 6 +++--- 4 files changed, 20 insertions(+), 16 deletions(-) diff --git a/config/patches/@vscode__windows-process-tree@0.8.0.patch b/config/patches/@vscode__windows-process-tree@0.8.0.patch index c0e002c44fe..95e3519fe21 100644 --- a/config/patches/@vscode__windows-process-tree@0.8.0.patch +++ b/config/patches/@vscode__windows-process-tree@0.8.0.patch @@ -7,7 +7,7 @@ index 855bd4b86f0a3c18c7594212c0e42b6e35bc4001..5f15551cb1520af996f216500a83ac68 "target_name": "windows_process_tree", "dependencies": [ - " { - it('keeps the gyp project path absolute so pnpm Windows source builds find it', () => { + it('keeps the gyp project path local so pnpm Windows source builds find it', () => { expect(PATCH).toContain( - String.raw`+ " { - const resolved = execFileSync(process.execPath, ['-p', ABSOLUTE_GYP], { + const resolved = execFileSync(process.execPath, ['-p', RESOLVED_GYP], { cwd: PACKAGE_DIR, encoding: 'utf8' }).trim() diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 060daf376f3..8a07ec53f93 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,7 +9,7 @@ overrides: patchedDependencies: '@vscode/windows-process-tree@0.8.0': - hash: 679908cbad6a7791d2fdf4aeececfc717879e04c0b8ed240a016d3dc02d5f2a6 + hash: 78f9cd88b7e14e56dbe43312011d21084dd05f314171ca21a24d58d1d1ab26b7 path: config/patches/@vscode__windows-process-tree@0.8.0.patch '@xterm/addon-ligatures@0.11.0-beta.287': hash: 47405b9994b5acf1b4e90b49250358c1ca03649854d59560e7732b72fe336920 @@ -407,7 +407,7 @@ importers: optionalDependencies: '@vscode/windows-process-tree': specifier: 0.8.0 - version: 0.8.0(patch_hash=679908cbad6a7791d2fdf4aeececfc717879e04c0b8ed240a016d3dc02d5f2a6) + version: 0.8.0(patch_hash=78f9cd88b7e14e56dbe43312011d21084dd05f314171ca21a24d58d1d1ab26b7) sherpa-onnx-darwin-arm64: specifier: 1.12.37 version: 1.12.37 @@ -9606,7 +9606,7 @@ snapshots: convert-source-map: 2.0.0 tinyrainbow: 3.1.0 - '@vscode/windows-process-tree@0.8.0(patch_hash=679908cbad6a7791d2fdf4aeececfc717879e04c0b8ed240a016d3dc02d5f2a6)': + '@vscode/windows-process-tree@0.8.0(patch_hash=78f9cd88b7e14e56dbe43312011d21084dd05f314171ca21a24d58d1d1ab26b7)': dependencies: node-addon-api: 7.1.0 optional: true