mirror of
https://github.com/stablyai/orca.git
synced 2026-10-28 00:02:54 +00:00
fix(orcad): drop an eslint-disable the rule no longer needs
This commit is contained in:
@@ -213,7 +213,8 @@ export function buildNodePtyLoadProbeScript(nodePtyDir: string): string {
|
||||
|
||||
function resolveNodePtyDir(): string | null {
|
||||
try {
|
||||
// eslint-disable-next-line @typescript-eslint/no-require-imports -- resolution only; the load itself happens in the child.
|
||||
// Why require.resolve and not import: resolution only — the load itself happens in
|
||||
// the child process, which is the whole point of the precondition.
|
||||
return dirname(require.resolve('node-pty/package.json'))
|
||||
} catch {
|
||||
return null
|
||||
@@ -339,7 +340,9 @@ export function formatNodePtyPreconditionReport(
|
||||
const { abi } = verdict
|
||||
const host = [
|
||||
`platform ${abi.platform}/${abi.arch}`,
|
||||
abi.libc === 'none' ? null : `libc ${abi.libc}${abi.glibcVersion ? ` ${abi.glibcVersion}` : ''}`,
|
||||
abi.libc === 'none'
|
||||
? null
|
||||
: `libc ${abi.libc}${abi.glibcVersion ? ` ${abi.glibcVersion}` : ''}`,
|
||||
`Node ABI ${abi.nodeAbi}`,
|
||||
`prebuild slot ${verdict.slot}`
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user