diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/node/polyfills/process.ts | 5 | ||||
-rw-r--r-- | ext/node/resolution.rs | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/ext/node/polyfills/process.ts b/ext/node/polyfills/process.ts index de48fea3e..ec8671122 100644 --- a/ext/node/polyfills/process.ts +++ b/ext/node/polyfills/process.ts @@ -408,7 +408,10 @@ Process.prototype.config = { target_defaults: { default_configuration: "Release", }, - variables: {}, + variables: { + llvm_version: "0.0", + enable_lto: "false", + }, }; /** https://nodejs.org/api/process.html#process_process_cwd */ diff --git a/ext/node/resolution.rs b/ext/node/resolution.rs index 5b61c1642..2f0b9898d 100644 --- a/ext/node/resolution.rs +++ b/ext/node/resolution.rs @@ -1459,7 +1459,13 @@ fn resolve_bin_entry_value<'a>( }; let bin_entry = match bin { Value::String(_) => { - if bin_name.is_some() && bin_name != package_json.name.as_deref() { + if bin_name.is_some() + && bin_name + != package_json + .name + .as_deref() + .map(|name| name.rsplit_once('/').map_or(name, |(_, name)| name)) + { None } else { Some(bin) |