fix(rust-binary-locator): use import.meta.resolve and url.fileURLToPath to locate bundled Rust binary in ESM environments

This commit is contained in:
2026-02-10 22:21:17 +00:00
parent 38249ea20f
commit 6e4947ef7d
4 changed files with 12 additions and 3 deletions

View File

@@ -4,8 +4,9 @@ import * as fs from 'fs';
import * as childProcess from 'child_process';
import * as readline from 'readline';
import * as events from 'events';
import * as url from 'url';
export { path, fs, childProcess, readline, events };
export { path, fs, childProcess, readline, events, url };
// @push.rocks scope
import * as smartpath from '@push.rocks/smartpath';