1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

chore: Replace fil:/// instead of file://

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-05-09 13:03:19 -04:00
parent 9f72b628be
commit 3b3d86c9d5

View File

@ -43,7 +43,9 @@ const joinWithInitCwd = (relativePath: string): string => {
}; };
const resolve = async (input: string) => { const resolve = async (input: string) => {
return (await import.meta.resolve?.(input))?.replace("file://", ""); const filePath = await import.meta.resolve?.(input);
return filePath?.replace("file:///", "");
} }
const size = options["--output-size"] ?? 16; const size = options["--output-size"] ?? 16;