diff --git a/src/core/ctx.ts b/src/core/ctx.ts index b6218e14..4313f931 100644 --- a/src/core/ctx.ts +++ b/src/core/ctx.ts @@ -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