Skip to content

Commit c5e15e4

Browse files
authoredDec 31, 2023
fix: don't || exit 0 in cleanup build (#1161)
## PR Checklist - [x] Addresses an existing open issue: fixes #000 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md) were taken ## Overview Removes the `|| exit 0` per the issue.
1 parent ebcde04 commit c5e15e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/shared/createCleanUpFilesCommands.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe("createCleanUpFilesCommands", () => {
1717

1818
expect(actual).toEqual([
1919
"pnpm dedupe",
20-
"pnpm build || exit 0",
20+
"pnpm build",
2121
"pnpm lint --fix",
2222
"pnpm format --write",
2323
]);

‎src/shared/createCleanUpFilesCommands.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function createCleanUpFilesCommands({
1111
// There's no need to dedupe when initializing from the fixed template
1212
...(dedupe ? ["pnpm dedupe"] : []),
1313
// n/no-missing-import rightfully reports on a missing the bin .js file
14-
...(bin ? ["pnpm build || exit 0"] : []),
14+
...(bin ? ["pnpm build"] : []),
1515
"pnpm lint --fix",
1616
"pnpm format --write",
1717
];

0 commit comments

Comments
 (0)