From 40e6cc5d5191c3034213741e4a95f5626dbb8fdd Mon Sep 17 00:00:00 2001 From: Jinwoo-H Date: Thu, 27 Aug 2026 21:01:02 -0400 Subject: [PATCH] fix(windows): import path helper for staged headers --- config/scripts/build-windows-process-tree-relay-addon.mjs | 2 +- config/scripts/windows-process-tree-gyp-path.test.mjs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/scripts/build-windows-process-tree-relay-addon.mjs b/config/scripts/build-windows-process-tree-relay-addon.mjs index 93e5b48eefb..b3b0720bf4f 100644 --- a/config/scripts/build-windows-process-tree-relay-addon.mjs +++ b/config/scripts/build-windows-process-tree-relay-addon.mjs @@ -29,7 +29,7 @@ import { readSync, writeFileSync } from 'node:fs' -import { join, resolve } from 'node:path' +import { dirname, join, resolve } from 'node:path' import { RELAY_WINDOWS_PROCESS_TREE_FILENAME } from '../../src/shared/relay-artifacts.ts' const ROOT = resolve(import.meta.dirname, '..', '..') diff --git a/config/scripts/windows-process-tree-gyp-path.test.mjs b/config/scripts/windows-process-tree-gyp-path.test.mjs index 256f6d49a9d..b80d59ba7f9 100644 --- a/config/scripts/windows-process-tree-gyp-path.test.mjs +++ b/config/scripts/windows-process-tree-gyp-path.test.mjs @@ -21,6 +21,7 @@ describe('windows-process-tree node-addon-api gyp path', () => { 'utf8' ) expect(buildScript).toContain("for (const header of ['napi.h', 'napi-inl.h'])") + expect(buildScript).toContain("import { dirname, join, resolve } from 'node:path'") expect(buildScript).toContain('Repaired un-applied pnpm patch hunks before build.') })