Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add posix and win32 exports to match node:path #193

Merged
merged 5 commits into from
Dec 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
import type NodePath from "node:path";

import * as path from "./path";

export * from "./path";

export * as default from "./path";
export type Pathe = Omit<
typeof NodePath,
"posix" | "win32" | "matchesGlob" // https://github.com/unjs/pathe/issues/182
>;

export const posix = path satisfies Pathe;

export const win32 = path satisfies Pathe;

export default path satisfies Pathe;
Loading