Skip to content

Commit

Permalink
chore: internally allow file structure to contain ignored false | und…
Browse files Browse the repository at this point in the history
…efined
  • Loading branch information
JoshuaKGoldberg committed Dec 5, 2024
1 parent 5175885 commit d8784f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/steps/writing/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export interface Structure {
[i: string]: string | Structure;
[i: string]: false | string | Structure | undefined;
}
2 changes: 1 addition & 1 deletion src/steps/writing/writeStructureWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export async function writeStructureWorker(
path.join(basePath, fileName),
await format(fileName, contents),
);
} else {
} else if (contents) {
await writeStructureWorker(contents, path.join(basePath, fileName));
}
}
Expand Down

0 comments on commit d8784f2

Please sign in to comment.