Skip to content

Commit 2002b9c

Browse files
authored
account for root level paths
1 parent 9290f1d commit 2002b9c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/cli/src/utils/miscellaneous.ts

+3
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ export function printExecutionTime(commandName: string, startedAt: number, api:
126126
}
127127

128128
export function pathToFilename(path: string, pathSeparator: string) {
129+
if (path === '/') {
130+
return 'root';
131+
}
129132
return path
130133
.replace(/~1/g, '/')
131134
.replace(/~0/g, '~')

0 commit comments

Comments
 (0)