fix(windows): import path helper for staged headers

This commit is contained in:
Jinwoo-H
2026-08-27 21:01:02 -04:00
parent be23156b0e
commit 40e6cc5d51
2 changed files with 2 additions and 1 deletions
@@ -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, '..', '..')
@@ -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.')
})