handle no slashes case
This commit is contained in:
parent
9d5050d3ee
commit
17be8f3601
1 changed files with 1 additions and 1 deletions
|
|
@ -139,7 +139,7 @@ export function convert(
|
|||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
options?: unknown,
|
||||
): Promise<string> {
|
||||
const outputPath = targetPath.split("/").slice(0, -1).join("/").replace("./", "");
|
||||
const outputPath = targetPath.split("/").slice(0, -1).join("/").replace("./", "") ?? targetPath;
|
||||
|
||||
// Build arguments array
|
||||
const args: string[] = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue