@naandalist/patch-package
Version:
Fix broken node modules with no fuss
13 lines (8 loc) • 341 B
text/typescript
import slash from "slash"
import path from "path"
export const join: typeof path.join = (...args) => slash(path.join(...args))
export { dirname } from "path"
export const resolve: typeof path.resolve = (...args) =>
slash(path.resolve(...args))
export const relative: typeof path.relative = (...args) =>
slash(path.relative(...args))