Fix import paths for require_dlopen module

Updated import statements in prebuild-loader.ts and windowsPtyAgent.ts to use relative path './index' for require_dlopen. This resolves incorrect module resolution issues.
This commit is contained in:
手瓜一十雪 2025-11-15 14:43:08 +08:00
parent 8645ed4d9d
commit 20e8643193
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import { require_dlopen } from 'index'; import { require_dlopen } from './index';
export function pty_loader () { export function pty_loader () {
let pty: any; let pty: any;
try { try {

View File

@ -11,7 +11,7 @@ import { Socket } from 'net';
import { ArgvOrCommandLine } from '@homebridge/node-pty-prebuilt-multiarch/src/types'; import { ArgvOrCommandLine } from '@homebridge/node-pty-prebuilt-multiarch/src/types';
import { fork } from 'child_process'; import { fork } from 'child_process';
import { ConoutConnection } from './windowsConoutConnection'; import { ConoutConnection } from './windowsConoutConnection';
import { require_dlopen } from '.'; import { require_dlopen } from './index';
import { fileURLToPath } from 'url'; import { fileURLToPath } from 'url';
import { dirname } from 'path'; import { dirname } from 'path';