Skip to content

Commit

Permalink
feat: add posix and win32 exports to match node:path (#193)
Browse files Browse the repository at this point in the history
Co-authored-by: Pooya Parsa <pooya@pi0.io>
  • Loading branch information
xeho91 and pi0 authored Dec 30, 2024
1 parent 717cb98 commit 7158866
Showing 1 changed file with 14 additions and 1 deletion.
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;

0 comments on commit 7158866

Please sign in to comment.