From fe368b72c1dd2f2d17b7b7e5965b9e3d9ca61c35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 7 Mar 2023 05:13:44 -0400 Subject: refactor: Add "deno_fs" extension crate (#18040) This commit factors out APIs related to file system from "runtime/" to a separate "deno_fs" extension crate. --- ext/node/lib.rs | 2 +- ext/node/polyfills/_process/process.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/node') diff --git a/ext/node/lib.rs b/ext/node/lib.rs index 468280075..e1134bd03 100644 --- a/ext/node/lib.rs +++ b/ext/node/lib.rs @@ -323,7 +323,7 @@ pub fn init_polyfill() -> Extension { Extension::builder(env!("CARGO_PKG_NAME")) .esm(esm_files) .esm_entry_point("internal:deno_node/module_all.ts") - .dependencies(vec!["deno_io"]) + .dependencies(vec!["deno_io", "deno_fs"]) .ops(vec![ crypto::op_node_create_hash::decl(), crypto::op_node_hash_update::decl(), diff --git a/ext/node/polyfills/_process/process.ts b/ext/node/polyfills/_process/process.ts index bee65f905..7ed40492d 100644 --- a/ext/node/polyfills/_process/process.ts +++ b/ext/node/polyfills/_process/process.ts @@ -7,7 +7,7 @@ const core = globalThis.Deno.core; import { nextTick as _nextTick } from "internal:deno_node/_next_tick.ts"; import { _exiting } from "internal:deno_node/_process/exiting.ts"; -import * as fs from "internal:runtime/30_fs.js"; +import * as fs from "internal:deno_fs/30_fs.js"; /** Returns the operating system CPU architecture for which the Deno binary was compiled */ export function arch(): string { -- cgit v1.2.3