refactor: rename built-in node modules from ext:deno_node/ to node: (#19680)

Closes https://github.com/denoland/deno/issues/19510
This commit is contained in:
Bartek Iwańczuk 2023-07-02 20:19:30 +02:00 committed by GitHub
parent 805497a9a5
commit 01f0d03ae8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
99 changed files with 422 additions and 554 deletions

View file

@ -5,7 +5,7 @@
"use strict";
import { Buffer } from "ext:deno_node/buffer.ts";
import { Buffer } from "node:buffer";
import {
ERR_FS_EISDIR,
ERR_FS_INVALID_SYMLINK_TYPE,
@ -23,7 +23,7 @@ import {
isUint8Array,
} from "ext:deno_node/internal/util/types.ts";
import { once } from "ext:deno_node/internal/util.mjs";
import { deprecate } from "ext:deno_node/util.ts";
import { deprecate } from "node:util";
import { toPathIfFileURL } from "ext:deno_node/internal/url.ts";
import {
validateAbortSignal,
@ -34,14 +34,14 @@ import {
validateObject,
validateUint32,
} from "ext:deno_node/internal/validators.mjs";
import pathModule from "ext:deno_node/path.ts";
import pathModule from "node:path";
const kType = Symbol("type");
const kStats = Symbol("stats");
import assert from "ext:deno_node/internal/assert.mjs";
import { lstat, lstatSync } from "ext:deno_node/_fs/_fs_lstat.ts";
import { stat, statSync } from "ext:deno_node/_fs/_fs_stat.ts";
import { isWindows } from "ext:deno_node/_util/os.ts";
import process from "ext:deno_node/process.ts";
import process from "node:process";
import {
fs as fsConstants,