summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/path
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/path')
-rw-r--r--ext/node/polyfills/path/_util.ts6
-rw-r--r--ext/node/polyfills/path/common.ts2
-rw-r--r--ext/node/polyfills/path/glob.ts13
-rw-r--r--ext/node/polyfills/path/mod.ts17
-rw-r--r--ext/node/polyfills/path/posix.ts8
-rw-r--r--ext/node/polyfills/path/separator.ts2
-rw-r--r--ext/node/polyfills/path/win32.ts10
7 files changed, 26 insertions, 32 deletions
diff --git a/ext/node/polyfills/path/_util.ts b/ext/node/polyfills/path/_util.ts
index ccc12abc9..1ba139924 100644
--- a/ext/node/polyfills/path/_util.ts
+++ b/ext/node/polyfills/path/_util.ts
@@ -2,7 +2,7 @@
// Ported from https://github.com/browserify/path-browserify/
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-import type { FormatInputPathObject } from "internal:deno_node/polyfills/path/_interface.ts";
+import type { FormatInputPathObject } from "internal:deno_node/path/_interface.ts";
import {
CHAR_BACKWARD_SLASH,
CHAR_DOT,
@@ -11,8 +11,8 @@ import {
CHAR_LOWERCASE_Z,
CHAR_UPPERCASE_A,
CHAR_UPPERCASE_Z,
-} from "internal:deno_node/polyfills/path/_constants.ts";
-import { ERR_INVALID_ARG_TYPE } from "internal:deno_node/polyfills/internal/errors.ts";
+} from "internal:deno_node/path/_constants.ts";
+import { ERR_INVALID_ARG_TYPE } from "internal:deno_node/internal/errors.ts";
export function assertPath(path: string) {
if (typeof path !== "string") {
diff --git a/ext/node/polyfills/path/common.ts b/ext/node/polyfills/path/common.ts
index e4efe7cc4..f8dad209b 100644
--- a/ext/node/polyfills/path/common.ts
+++ b/ext/node/polyfills/path/common.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.
-import { SEP } from "internal:deno_node/polyfills/path/separator.ts";
+import { SEP } from "internal:deno_node/path/separator.ts";
/** Determines the common path from a set of paths, using an optional separator,
* which defaults to the OS default separator.
diff --git a/ext/node/polyfills/path/glob.ts b/ext/node/polyfills/path/glob.ts
index c0da29b9f..00529eb3c 100644
--- a/ext/node/polyfills/path/glob.ts
+++ b/ext/node/polyfills/path/glob.ts
@@ -1,13 +1,10 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-import { isWindows, osType } from "internal:deno_node/polyfills/_util/os.ts";
-import {
- SEP,
- SEP_PATTERN,
-} from "internal:deno_node/polyfills/path/separator.ts";
-import * as _win32 from "internal:deno_node/polyfills/path/win32.ts";
-import * as _posix from "internal:deno_node/polyfills/path/posix.ts";
-import type { OSType } from "internal:deno_node/polyfills/_util/os.ts";
+import { isWindows, osType } from "internal:deno_node/_util/os.ts";
+import { SEP, SEP_PATTERN } from "internal:deno_node/path/separator.ts";
+import * as _win32 from "internal:deno_node/path/win32.ts";
+import * as _posix from "internal:deno_node/path/posix.ts";
+import type { OSType } from "internal:deno_node/_util/os.ts";
const path = isWindows ? _win32 : _posix;
const { join, normalize } = path;
diff --git a/ext/node/polyfills/path/mod.ts b/ext/node/polyfills/path/mod.ts
index 4b4de056b..eaeeeed74 100644
--- a/ext/node/polyfills/path/mod.ts
+++ b/ext/node/polyfills/path/mod.ts
@@ -2,9 +2,9 @@
// Ported mostly from https://github.com/browserify/path-browserify/
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-import { isWindows } from "internal:deno_node/polyfills/_util/os.ts";
-import _win32 from "internal:deno_node/polyfills/path/win32.ts";
-import _posix from "internal:deno_node/polyfills/path/posix.ts";
+import { isWindows } from "internal:deno_node/_util/os.ts";
+import _win32 from "internal:deno_node/path/win32.ts";
+import _posix from "internal:deno_node/path/posix.ts";
const path = isWindows ? _win32 : _posix;
@@ -28,10 +28,7 @@ export const {
toNamespacedPath,
} = path;
-export * from "internal:deno_node/polyfills/path/common.ts";
-export {
- SEP,
- SEP_PATTERN,
-} from "internal:deno_node/polyfills/path/separator.ts";
-export * from "internal:deno_node/polyfills/path/_interface.ts";
-export * from "internal:deno_node/polyfills/path/glob.ts";
+export * from "internal:deno_node/path/common.ts";
+export { SEP, SEP_PATTERN } from "internal:deno_node/path/separator.ts";
+export * from "internal:deno_node/path/_interface.ts";
+export * from "internal:deno_node/path/glob.ts";
diff --git a/ext/node/polyfills/path/posix.ts b/ext/node/polyfills/path/posix.ts
index 8ebf64629..f6ff13b76 100644
--- a/ext/node/polyfills/path/posix.ts
+++ b/ext/node/polyfills/path/posix.ts
@@ -5,12 +5,12 @@
import type {
FormatInputPathObject,
ParsedPath,
-} from "internal:deno_node/polyfills/path/_interface.ts";
+} from "internal:deno_node/path/_interface.ts";
import {
CHAR_DOT,
CHAR_FORWARD_SLASH,
-} from "internal:deno_node/polyfills/path/_constants.ts";
-import { ERR_INVALID_ARG_TYPE } from "internal:deno_node/polyfills/internal/errors.ts";
+} from "internal:deno_node/path/_constants.ts";
+import { ERR_INVALID_ARG_TYPE } from "internal:deno_node/internal/errors.ts";
import {
_format,
@@ -18,7 +18,7 @@ import {
encodeWhitespace,
isPosixPathSeparator,
normalizeString,
-} from "internal:deno_node/polyfills/path/_util.ts";
+} from "internal:deno_node/path/_util.ts";
export const sep = "/";
export const delimiter = ":";
diff --git a/ext/node/polyfills/path/separator.ts b/ext/node/polyfills/path/separator.ts
index 2cfde31d0..cf089db71 100644
--- a/ext/node/polyfills/path/separator.ts
+++ b/ext/node/polyfills/path/separator.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-import { isWindows } from "internal:deno_node/polyfills/_util/os.ts";
+import { isWindows } from "internal:deno_node/_util/os.ts";
export const SEP = isWindows ? "\\" : "/";
export const SEP_PATTERN = isWindows ? /[\\/]+/ : /\/+/;
diff --git a/ext/node/polyfills/path/win32.ts b/ext/node/polyfills/path/win32.ts
index 4b30e3430..4ba3ad0f1 100644
--- a/ext/node/polyfills/path/win32.ts
+++ b/ext/node/polyfills/path/win32.ts
@@ -5,14 +5,14 @@
import type {
FormatInputPathObject,
ParsedPath,
-} from "internal:deno_node/polyfills/path/_interface.ts";
+} from "internal:deno_node/path/_interface.ts";
import {
CHAR_BACKWARD_SLASH,
CHAR_COLON,
CHAR_DOT,
CHAR_QUESTION_MARK,
-} from "internal:deno_node/polyfills/path/_constants.ts";
-import { ERR_INVALID_ARG_TYPE } from "internal:deno_node/polyfills/internal/errors.ts";
+} from "internal:deno_node/path/_constants.ts";
+import { ERR_INVALID_ARG_TYPE } from "internal:deno_node/internal/errors.ts";
import {
_format,
@@ -21,8 +21,8 @@ import {
isPathSeparator,
isWindowsDeviceRoot,
normalizeString,
-} from "internal:deno_node/polyfills/path/_util.ts";
-import { assert } from "internal:deno_node/polyfills/_util/asserts.ts";
+} from "internal:deno_node/path/_util.ts";
+import { assert } from "internal:deno_node/_util/asserts.ts";
export const sep = "\\";
export const delimiter = ";";