Skip to content

Commit

Permalink
fix: normalize config.root (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumv-net committed Dec 3, 2023
1 parent a2e9095 commit 35d46e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/ctx.ts
Expand Up @@ -34,6 +34,8 @@ async function scanDirExports(dirs: string[], root: string) {
}

export function createContext(options: Options = {}, root = process.cwd()) {
root = slash(root)

const {
dts: preferDTS = isPackageExists('typescript'),
} = options
Expand Down

0 comments on commit 35d46e2

Please sign in to comment.