Skip to content

Commit 9b44f42

Browse files
bartlomiejuclaude
andcommitted
refactor(ext/node): consolidate node:fs (part 9)
Inline `_fs_read.ts`, `_fs_readdir.ts`, `_fs_readFile.ts`, and `_fs_readlink.ts` into the main `fs.ts` module, following the same pattern as parts 1-8. Update imports in `promises.ts`, `_fs_glob.ts`, and `cp_sync.ts` to reference the consolidated location. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 40b56f7 commit 9b44f42

File tree

9 files changed

+823
-846
lines changed

9 files changed

+823
-846
lines changed

ext/node/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,6 @@ deno_core::extension!(deno_node,
386386
"_fs/_fs_glob.ts",
387387
"_fs/_fs_lstat.ts",
388388
"_fs/_fs_lutimes.ts",
389-
"_fs/_fs_read.ts",
390-
"_fs/_fs_readdir.ts",
391-
"_fs/_fs_readFile.ts",
392-
"_fs/_fs_readlink.ts",
393389
"_next_tick.ts",
394390
"_process/exiting.ts",
395391
"_process/process.ts",

ext/node/polyfills/_fs/_fs_glob.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ import { isMacOS, isWindows } from "ext:deno_node/_util/os.ts";
1313
import { kEmptyObject } from "ext:deno_node/internal/util.mjs";
1414
import process from "node:process";
1515

16-
import {
17-
readdirPromise as readdir,
18-
readdirSync,
19-
} from "ext:deno_node/_fs/_fs_readdir.ts";
16+
import { readdirPromise as readdir, readdirSync } from "node:fs";
2017
import {
2118
lstatPromise as lstat,
2219
lstatSync,

ext/node/polyfills/_fs/_fs_read.ts

Lines changed: 0 additions & 267 deletions
This file was deleted.

0 commit comments

Comments
 (0)