Skip to content

Commit

Permalink
fix: don't clean root directory if set as outDir
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Dec 6, 2023
1 parent 8b41a58 commit c3d9171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ async function _build(
.filter(Boolean)
.sort() as unknown as Set<string>,
)) {
if (cleanedDirs.some((c) => dir.startsWith(c))) {
if (dir === options.rootDir || cleanedDirs.some((c) => dir.startsWith(c))) {
continue;
}
cleanedDirs.push(dir);
Expand Down

0 comments on commit c3d9171

Please sign in to comment.