Skip to content

Commit

Permalink
chore: add remaining block migrations to migrate/update old repos
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Dec 31, 2024
1 parent 8762229 commit 8bf15b2
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/next/blocks/blockESLint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ describe("blockESLint", () => {
},
{
"commands": [
"rm .eslintrc* .eslintignore",
"rm .eslintrc* .eslintignore eslint.config.*",
],
"phase": 0,
},
Expand Down
2 changes: 1 addition & 1 deletion src/next/blocks/blockESLint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const blockESLint = base.createBlock({
return {
scripts: [
{
commands: ["rm .eslintrc* .eslintignore"],
commands: ["rm .eslintrc* .eslintignore eslint.config.*"],
phase: CommandPhase.Migrations,
},
],
Expand Down
11 changes: 11 additions & 0 deletions src/next/blocks/blockKnip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,22 @@ import { blockDevelopmentDocs } from "./blockDevelopmentDocs.js";
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.js";
import { blockPackageJson } from "./blockPackageJson.js";
import { getPackageDependencies, getPackageDependency } from "./packageData.js";
import { CommandPhase } from "./phases.js";

export const blockKnip = base.createBlock({
about: {
name: "Knip",
},
migrate() {
return {
scripts: [
{
commands: ["rm .knip* knip.*"],
phase: CommandPhase.Migrations,
},
],
};
},
produce() {
return {
addons: [
Expand Down
2 changes: 1 addition & 1 deletion src/next/blocks/blockVitest.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ describe("blockVitest", () => {
"scripts": [
{
"commands": [
"rm .github/codecov.yml .mocha* codecov.yml jest.config.*",
"rm .github/codecov.yml .mocha* codecov.yml jest.config.* vitest.config.*",
],
"phase": 0,
},
Expand Down
2 changes: 1 addition & 1 deletion src/next/blocks/blockVitest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const blockVitest = base.createBlock({
scripts: [
{
commands: [
"rm .github/codecov.yml .mocha* codecov.yml jest.config.*",
"rm .github/codecov.yml .mocha* codecov.yml jest.config.* vitest.config.*",
],
phase: CommandPhase.Migrations,
},
Expand Down

0 comments on commit 8bf15b2

Please sign in to comment.