Skip to content

Commit

Permalink
fix relative import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
oviirup committed Dec 7, 2024
1 parent d4fa6d5 commit a5bc2d3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/format.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const { sep } = require('path')

export function relativify(path: string) {
return path.startsWith('.') ? path : `.${sep}${path}`
return path.startsWith('.') ? path : `./${path}`
}

0 comments on commit a5bc2d3

Please sign in to comment.