Skip to content

Commit 375d997

Browse files
authored
fix(workspace): normalize windows path (#376)
1 parent a660fd1 commit 375d997

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/options/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { resolveClean } from '../features/clean'
77
import { resolveEntry } from '../features/entry'
88
import { resolveTarget } from '../features/target'
99
import { resolveTsconfig } from '../features/tsconfig'
10-
import { resolveRegex } from '../utils/general'
10+
import { resolveRegex, slash } from '../utils/general'
1111
import { logger } from '../utils/logger'
1212
import { normalizeFormat, readPackageJson } from '../utils/package'
1313
import type { Awaitable } from '../utils/types'
@@ -99,7 +99,7 @@ async function resolveWorkspace(
9999
})
100100
)
101101
.filter((file) => file !== 'package.json') // exclude root package.json
102-
.map((file) => path.resolve(rootCwd, file, '..'))
102+
.map((file) => slash(path.resolve(rootCwd, file, '..')))
103103
} else {
104104
packages = (
105105
await glob({
@@ -109,7 +109,7 @@ async function resolveWorkspace(
109109
onlyDirectories: true,
110110
absolute: true,
111111
})
112-
).map((file) => path.resolve(file))
112+
).map((file) => slash(path.resolve(file)))
113113
}
114114

115115
if (packages.length === 0) {

0 commit comments

Comments
 (0)