From d0e3065d1282316fb0cbcb61e927cc52041809a9 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Mon, 14 Mar 2022 13:38:32 +0100 Subject: [PATCH] fix(core): update --- ts/smartpath.get.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/smartpath.get.ts b/ts/smartpath.get.ts index f3d8fec..765302b 100644 --- a/ts/smartpath.get.ts +++ b/ts/smartpath.get.ts @@ -16,8 +16,8 @@ export const type = (pathStringArg: string): TPathType => { /** * gets the dirname from import.meta.url */ -export const getDirnameFromImportMetaUrl = () => { - +export const getDirnameFromImportMetaUrl = (importMetaUrlArg: string) => { + return plugins.path.dirname(plugins.url.fileURLToPath(importMetaUrlArg)); } /**