1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

fix(ext/node): Add missing node:path exports (#25567)

Apparently `path/posix` and `path/win32` have circular exports. I do not
know why.

Additionally there's a deprecated function `_makeLong` which is just
`toNamespacedPath`
This commit is contained in:
Nathan Whitaker 2024-09-10 17:00:08 -07:00 committed by GitHub
parent f959297dcd
commit acd62786c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 14 additions and 0 deletions

View file

@ -478,6 +478,9 @@ export function parse(path: string): ParsedPath {
return ret;
}
export const _makeLong = toNamespacedPath;
export default {
basename,
delimiter,
@ -492,4 +495,5 @@ export default {
resolve,
sep,
toNamespacedPath,
_makeLong,
};

View file

@ -953,6 +953,8 @@ export function parse(path: string): ParsedPath {
return ret;
}
export const _makeLong = toNamespacedPath;
export default {
basename,
delimiter,
@ -967,4 +969,5 @@ export default {
resolve,
sep,
toNamespacedPath,
_makeLong,
};

View file

@ -36,6 +36,7 @@ export const {
resolve,
sep,
toNamespacedPath,
_makeLong,
} = path;
export default path;
export * from "ext:deno_node/path/common.ts";

View file

@ -18,6 +18,9 @@ export const {
resolve,
sep,
toNamespacedPath,
_makeLong,
} = path.posix;
export const posix = path.posix;
export const win32 = path.win32;
export default path.posix;

View file

@ -18,6 +18,9 @@ export const {
resolve,
sep,
toNamespacedPath,
_makeLong,
} = path.win32;
export const posix = path.posix;
export const win32 = path.win32;
export default path.win32;