summaryrefslogtreecommitdiff
path: root/ext/node/lib.rs
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2023-01-08 23:48:46 +0100
committerGitHub <noreply@github.com>2023-01-08 23:48:46 +0100
commitc41d4ff90e09b63bd1894052352a5acba57b1704 (patch)
tree52be95551ed263c2f4831aaefc78bb6fdda6d89c /ext/node/lib.rs
parent2be1282be42369e558cc77f75b22488ce7a8215e (diff)
feat(core): allow specifying name and dependencies of an Extension (#17301)
Diffstat (limited to 'ext/node/lib.rs')
-rw-r--r--ext/node/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/node/lib.rs b/ext/node/lib.rs
index d6fdd7679..a670586d1 100644
--- a/ext/node/lib.rs
+++ b/ext/node/lib.rs
@@ -80,7 +80,7 @@ pub static NODE_ENV_VAR_ALLOWLIST: Lazy<HashSet<String>> = Lazy::new(|| {
pub fn init<P: NodePermissions + 'static>(
maybe_npm_resolver: Option<Rc<dyn RequireNpmResolver>>,
) -> Extension {
- Extension::builder()
+ Extension::builder(env!("CARGO_PKG_NAME"))
.js(include_js_files!(
prefix "deno:ext/node",
"01_node.js",