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:
parent
f959297dcd
commit
acd62786c2
5 changed files with 14 additions and 0 deletions
|
@ -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,
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
|
|
@ -36,6 +36,7 @@ export const {
|
|||
resolve,
|
||||
sep,
|
||||
toNamespacedPath,
|
||||
_makeLong,
|
||||
} = path;
|
||||
export default path;
|
||||
export * from "ext:deno_node/path/common.ts";
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue