Fix: prepare
This commit is contained in:
Vendored
-3
@@ -1,3 +0,0 @@
|
|||||||
declare const getFilename: (moduleUrl: string) => string;
|
|
||||||
declare const getDirname: (moduleUrl: string) => string;
|
|
||||||
export { getFilename, getDirname, };
|
|
||||||
Vendored
-9
@@ -1,9 +0,0 @@
|
|||||||
import { fileURLToPath } from "node:url";
|
|
||||||
import { dirname } from "node:path";
|
|
||||||
const getFilename = (moduleUrl) => {
|
|
||||||
return fileURLToPath(moduleUrl);
|
|
||||||
};
|
|
||||||
const getDirname = (moduleUrl) => {
|
|
||||||
return dirname(getFilename(moduleUrl));
|
|
||||||
};
|
|
||||||
export { getFilename, getDirname, };
|
|
||||||
Reference in New Issue
Block a user