Skip to content

Commit

Permalink
fix: resolve outDir relative to rootDir
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Dec 3, 2021
1 parent 867ebc5 commit ba18055
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ba18055

Please sign in to comment.