Repository: JoshuaKGoldberg/create-typescript-app
Pull request #1882 (2025-01-16 17:49:40)

fix: run migration rm scripts with silent: true
## PR Checklist

- [x] Addresses an existing open issue: fixes #1839
- [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

Corresponding to https://github.com/JoshuaKGoldberg/create/pull/137.

💖 


Patch:
diff --git a/src/next/blocks/blockCodecov.ts b/src/next/blocks/blockCodecov.ts
index 36203aa..2233296 100644
--- a/src/next/blocks/blockCodecov.ts
+++ b/src/next/blocks/blockCodecov.ts
@@ -16,6 +16,7 @@ export const blockCodecov = base.createBlock({
 				{
 					commands: ["rm .github/codecov.yml codecov.yml"],
 					phase: CommandPhase.Migrations,
+					silent: true,
 				},
 			],
 		};
diff --git a/src/next/blocks/blockContributingDocs.ts b/src/next/blocks/blockContributingDocs.ts
index 99e30a7..0e68dc5 100644
--- a/src/next/blocks/blockContributingDocs.ts
+++ b/src/next/blocks/blockContributingDocs.ts
@@ -11,6 +11,7 @@ export const blockContributingDocs = base.createBlock({
 				{
 					commands: ["rm CONTRIBUTING.md"],
 					phase: CommandPhase.Migrations,
+					silent: true,
 				},
 			],
 		};
diff --git a/src/next/blocks/blockContributorCovenant.ts b/src/next/blocks/blockContributorCovenant.ts
index 5254b50..996ec88 100644
--- a/src/next/blocks/blockContributorCovenant.ts
+++ b/src/next/blocks/blockContributorCovenant.ts
@@ -11,6 +11,7 @@ export const blockContributorCovenant = base.createBlock({
 				{
 					commands: ["rm CODE_OF_CONDUCT.md"],
 					phase: CommandPhase.Migrations,
+					silent: true,
 				},
 			],
 		};
diff --git a/src/next/blocks/blockDevelopmentDocs.ts b/src/next/blocks/blockDevelopmentDocs.ts
index fa3e407..13dcc89 100644
--- a/src/next/blocks/blockDevelopmentDocs.ts
+++ b/src/next/blocks/blockDevelopmentDocs.ts
@@ -70,6 +70,7 @@ export const blockDevelopmentDocs = base.createBlock({
 				{
 					commands: ["rm DEVELOPMENT.md"],
 					phase: CommandPhase.Migrations,
+					silent: true,
 				},
 			],
 		};
diff --git a/src/next/blocks/blockESLint.ts b/src/next/blocks/blockESLint.ts
index e8061ca..d9ceab8 100644
--- a/src/next/blocks/blockESLint.ts
+++ b/src/next/blocks/blockESLint.ts
@@ -70,6 +70,7 @@ export const blockESLint = base.createBlock({
 				{
 					commands: ["rm .eslintrc* .eslintignore eslint.config.*"],
 					phase: CommandPhase.Migrations,
+					silent: true,
 				},
 			],
 		};
diff --git a/src/next/blocks/blockGitHubActionsCI.ts b/src/next/blocks/blockGitHubActionsCI.ts
index f9e995a..d35c477 100644
--- a/src/next/blocks/blockGitHubActionsCI.ts
+++ b/src/next/blocks/blockGitHubActionsCI.ts
@@ -35,6 +35,7 @@ export const blockGitHubActionsCI = base.createBlock({
 				{
 					commands: ["rm -rf .circleci travis.yml"],
 					phase: CommandPhase.Migrations,
+					silent: true,
 				},
 			],
 		};
diff --git a/src/next/blocks/blockKnip.ts b/src/next/blocks/blockKnip.ts
index 03efbe2..cd3b0cf 100644
--- a/src/next/blocks/blockKnip.ts
+++ b/src/next/blocks/blockKnip.ts
@@ -20,6 +20,7 @@ export const blockKnip = base.createBlock({
 				{
 					commands: ["rm .knip* knip.*"],
 					phase: CommandPhase.Migrations,
+					silent: true,
 				},
 			],
 		};
diff --git a/src/next/blocks/blockPackageJson.ts b/src/next/blocks/blockPackageJson.ts
index 3629977..7b88768 100644
--- a/src/next/blocks/blockPackageJson.ts
+++ b/src/next/blocks/blockPackageJson.ts
@@ -32,6 +32,7 @@ export const blockPackageJson = base.createBlock({
 				{
 					commands: ["rm package-lock.json yarn.lock"],
 					phase: CommandPhase.Migrations,
+					silent: true,
 				},
 			],
 		};
diff --git a/src/next/blocks/blockPrettier.ts b/src/next/blocks/blockPrettier.ts
index f08bf42..674e488 100644
--- a/src/next/blocks/blockPrettier.ts
+++ b/src/next/blocks/blockPrettier.ts
@@ -34,6 +34,7 @@ export const blockPrettier = base.createBlock({
 				{
 					commands: ["rm .prettierrc* prettier.config*"],
 					phase: CommandPhase.Migrations,
+					silent: true,
 				},
 			],
 		};
diff --git a/src/next/blocks/blockTSup.ts b/src/next/blocks/blockTSup.ts
index 7d6d8a3..dfb82d6 100644
--- a/src/next/blocks/blockTSup.ts
+++ b/src/next/blocks/blockTSup.ts
@@ -22,6 +22,7 @@ export const blockTSup = base.createBlock({
 				{
 					commands: ["rm -rf .babelrc* babel.config.* dist lib"],
 					phase: CommandPhase.Migrations,
+					silent: true,
 				},
 			],
 		};


Test patch:
diff --git a/src/next/blocks/blockCodecov.test.ts b/src/next/blocks/blockCodecov.test.ts
index 878e424..185f91f 100644
--- a/src/next/blocks/blockCodecov.test.ts
+++ b/src/next/blocks/blockCodecov.test.ts
@@ -78,6 +78,7 @@ describe("blockCodecov", () => {
 			        "rm .github/codecov.yml codecov.yml",
 			      ],
 			      "phase": 0,
+			      "silent": true,
 			    },
 			  ],
 			}
diff --git a/src/next/blocks/blockContributingDocs.test.ts b/src/next/blocks/blockContributingDocs.test.ts
index 115ab62..869d747 100644
--- a/src/next/blocks/blockContributingDocs.test.ts
+++ b/src/next/blocks/blockContributingDocs.test.ts
@@ -234,6 +234,7 @@ describe("blockContributingDocs", () => {
 			        "rm CONTRIBUTING.md",
 			      ],
 			      "phase": 0,
+			      "silent": true,
 			    },
 			  ],
 			}
diff --git a/src/next/blocks/blockContributorCovenant.test.ts b/src/next/blocks/blockContributorCovenant.test.ts
index e04d232..0904a89 100644
--- a/src/next/blocks/blockContributorCovenant.test.ts
+++ b/src/next/blocks/blockContributorCovenant.test.ts
@@ -304,6 +304,7 @@ describe("blockContributorCovenant", () => {
 			        "rm CODE_OF_CONDUCT.md",
 			      ],
 			      "phase": 0,
+			      "silent": true,
 			    },
 			  ],
 			}
diff --git a/src/next/blocks/blockDevelopmentDocs.test.ts b/src/next/blocks/blockDevelopmentDocs.test.ts
index e07c4c1..659faec 100644
--- a/src/next/blocks/blockDevelopmentDocs.test.ts
+++ b/src/next/blocks/blockDevelopmentDocs.test.ts
@@ -58,6 +58,7 @@ describe("blockDevelopmentDocs", () => {
 			        "rm DEVELOPMENT.md",
 			      ],
 			      "phase": 0,
+			      "silent": true,
 			    },
 			  ],
 			}
diff --git a/src/next/blocks/blockGitHubActionsCI.test.ts b/src/next/blocks/blockGitHubActionsCI.test.ts
index af9efb0..4a91990 100644
--- a/src/next/blocks/blockGitHubActionsCI.test.ts
+++ b/src/next/blocks/blockGitHubActionsCI.test.ts
@@ -184,6 +184,7 @@ describe("blockGitHubActionsCI", () => {
 			        "rm -rf .circleci travis.yml",
 			      ],
 			      "phase": 0,
+			      "silent": true,
 			    },
 			  ],
 			}
diff --git a/src/next/blocks/blockTSup.test.ts b/src/next/blocks/blockTSup.test.ts
index 1cfbe50..fd7a102 100644
--- a/src/next/blocks/blockTSup.test.ts
+++ b/src/next/blocks/blockTSup.test.ts
@@ -181,6 +181,7 @@ describe("blockTSup", () => {
 			        "rm -rf .babelrc* babel.config.* dist lib",
 			      ],
 			      "phase": 0,
+			      "silent": true,
 			    },
 			  ],
 			}
diff --git a/src/next/blocks/blockVitest.test.ts b/src/next/blocks/blockVitest.test.ts
index 3ae3e90..2323f5e 100644
--- a/src/next/blocks/blockVitest.test.ts
+++ b/src/next/blocks/blockVitest.test.ts
@@ -472,6 +472,7 @@ describe("blockVitest", () => {
 			        "rm .mocha* jest.config.* vitest.config.*",
 			      ],
 			      "phase": 0,
+			      "silent": true,
 			    },
 			  ],
 			}
diff --git a/src/next/blocks/blockVitest.ts b/src/next/blocks/blockVitest.ts
index bdf8f6b..9ba0c53 100644
--- a/src/next/blocks/blockVitest.ts
+++ b/src/next/blocks/blockVitest.ts
@@ -35,6 +35,7 @@ export const blockVitest = base.createBlock({
 				{
 					commands: ["rm .mocha* jest.config.* vitest.config.*"],
 					phase: CommandPhase.Migrations,
+					silent: true,
 				},
 			],
 		};