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,
};