diff --git a/src/shared/createCleanUpFilesCommands.test.ts b/src/shared/createCleanUpFilesCommands.test.ts index 6dafc83a8..9fbf4a756 100644 --- a/src/shared/createCleanUpFilesCommands.test.ts +++ b/src/shared/createCleanUpFilesCommands.test.ts @@ -17,7 +17,7 @@ describe("createCleanUpFilesCommands", () => { expect(actual).toEqual([ "pnpm dedupe", - "pnpm build || exit 0", + "pnpm build", "pnpm lint --fix", "pnpm format --write", ]); diff --git a/src/shared/createCleanUpFilesCommands.ts b/src/shared/createCleanUpFilesCommands.ts index b13033b48..b10eecfd9 100644 --- a/src/shared/createCleanUpFilesCommands.ts +++ b/src/shared/createCleanUpFilesCommands.ts @@ -11,7 +11,7 @@ export function createCleanUpFilesCommands({ // There's no need to dedupe when initializing from the fixed template ...(dedupe ? ["pnpm dedupe"] : []), // n/no-missing-import rightfully reports on a missing the bin .js file - ...(bin ? ["pnpm build || exit 0"] : []), + ...(bin ? ["pnpm build"] : []), "pnpm lint --fix", "pnpm format --write", ];