We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9358019 commit f14380fCopy full SHA for f14380f
src/utils.ts
@@ -1,8 +1,15 @@
1
+import { sep } from 'node:path'
2
+
3
export type GenericObject = Record<string, any>
4
5
export type NodeError = NodeJS.ErrnoException
6
-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
+}
13
14
export function pascalCase(original: string): string {
15
const rest = original
0 commit comments