Skip to content

Commit 35d46e2

Browse files
authoredDec 3, 2023
fix: normalize config.root (#443)
1 parent a2e9095 commit 35d46e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/core/ctx.ts

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ async function scanDirExports(dirs: string[], root: string) {
3434
}
3535

3636
export function createContext(options: Options = {}, root = process.cwd()) {
37+
root = slash(root)
38+
3739
const {
3840
dts: preferDTS = isPackageExists('typescript'),
3941
} = options

0 commit comments

Comments
 (0)
Please sign in to comment.