mirror of
https://github.com/stablyai/orca.git
synced 2026-10-23 16:03:49 +00:00
fix(windows): import path helper for staged headers
This commit is contained in:
@@ -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.')
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user