Skip to content

Commit f14380f

Browse files
committed
fixup
Signed-off-by: Paolo Insogna <paolo@cowtech.it>
1 parent 9358019 commit f14380f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/utils.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1+
import { sep } from 'node:path'
2+
13
export type GenericObject = Record<string, any>
24

35
export type NodeError = NodeJS.ErrnoException
46

5-
const processRoot = process.cwd()
7+
let processRoot = process.cwd()
8+
9+
/* c8 ignore next 3 - Windows specific */
10+
if (process.platform === 'win32') {
11+
processRoot = '/' + process.cwd().replaceAll(sep, '/')
12+
}
613

714
export function pascalCase(original: string): string {
815
const rest = original

0 commit comments

Comments
 (0)