Skip to content

Commit

Permalink
fix: getAbsFileName & getDirname Missing first parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
condorheroblog committed May 9, 2023
1 parent ba5f4b4 commit e5dbb11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/utils/getAbsFileName.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fileURLToPath } from "node:url";

export function getAbsFileName() {
return fileURLToPath(import.meta.url);
export function getAbsFileName(metaURL: string) {
return fileURLToPath(metaURL);
}
4 changes: 2 additions & 2 deletions src/utils/getDirname.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { dirname } from "node:path";
import { getAbsFileName } from "./getAbsFileName";

export function getDirname() {
return dirname(getAbsFileName());
export function getDirname(metaURL: string) {
return dirname(getAbsFileName(metaURL));
}

0 comments on commit e5dbb11

Please sign in to comment.