Skip to content

Commit 2b4dd8a

Browse files
committed
fix(out-helper): path resolution of outdir
1 parent 8f86262 commit 2b4dd8a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/core/helpers/out.helper.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,17 @@ const resolveOutDir = (options: EsbuildOptionPaths & PathOverrides): string => {
99

1010
const outBase: string = options.outBase ?? ".";
1111

12+
if (options.outDir !== undefined)
13+
return path.join(
14+
process.cwd(),
15+
outBase,
16+
options.outDir
17+
);
18+
1219
return path.join(
1320
process.cwd(),
1421
outBase,
15-
options.outDir ?? options.outFile === undefined
22+
options.outFile === undefined
1623
? "dist"
1724
: path.parse(options.outFile).dir
1825
);

0 commit comments

Comments
 (0)