summaryrefslogtreecommitdiff
path: root/ext/node/lib.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-03-09 08:10:54 -0400
committerGitHub <noreply@github.com>2023-03-09 12:10:54 +0000
commitc3cba7f22c49ca3a3f58df44d8ea4c85d8510bff (patch)
treec710275a5c51b8a4c8175a3ebe92c928272bf3dc /ext/node/lib.rs
parent521cb4ca9b9b02f7ba3150338d5f3c4b035aab8d (diff)
refactor(core): Extension::builder_with_deps (#18093)
Prerequisite for https://github.com/denoland/deno/pull/18080
Diffstat (limited to 'ext/node/lib.rs')
-rw-r--r--ext/node/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/node/lib.rs b/ext/node/lib.rs
index 496d35fbc..899a1d30c 100644
--- a/ext/node/lib.rs
+++ b/ext/node/lib.rs
@@ -332,10 +332,9 @@ pub fn init_polyfill_ops_and_esm() -> Extension {
"zlib.ts",
);
- Extension::builder(env!("CARGO_PKG_NAME"))
+ Extension::builder_with_deps(env!("CARGO_PKG_NAME"), &["deno_io", "deno_fs"])
.esm(esm_files)
.esm_entry_point("ext:deno_node/module_all.ts")
- .dependencies(vec!["deno_io", "deno_fs"])
.ops(vec![
crypto::op_node_create_hash::decl(),
crypto::op_node_hash_update::decl(),