diff --git a/src/build.ts b/src/build.ts index 3f2b387a..7494d770 100644 --- a/src/build.ts +++ b/src/build.ts @@ -46,6 +46,9 @@ export async function build (rootDir: string, stub: boolean, inputConfig: BuildC } }) as BuildOptions + // Resolve dirs relative to rootDir + options.outDir = resolve(options.rootDir, options.outDir) + // Build context const ctx: BuildContext = { options,