Skip to content

Commit 35d46e2

Browse files
authored
fix: normalize config.root (#443)
1 parent a2e9095 commit 35d46e2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/core/ctx.ts

Lines changed: 2 additions & 0 deletions
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)