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.') })