diff --git a/cspell.json b/cspell.json index f97b9676a..59c1f5726 100644 --- a/cspell.json +++ b/cspell.json @@ -20,6 +20,7 @@ "joshuakgoldberg", "mshick", "octoguide", - "stefanzweifel" + "stefanzweifel", + "ts-prunerc" ] } diff --git a/src/blocks/blockKnip.test.ts b/src/blocks/blockKnip.test.ts index 546a75d08..a80894354 100644 --- a/src/blocks/blockKnip.test.ts +++ b/src/blocks/blockKnip.test.ts @@ -59,6 +59,14 @@ describe("blockKnip", () => { }, "block": [Function], }, + { + "addons": { + "files": [ + ".ts-prunerc*", + ], + }, + "block": [Function], + }, ], "files": { "knip.json": "{"$schema":"https://unpkg.com/knip@5.71.0/schema.json","ignoreExportsUsedInFile":{"interface":true,"type":true}}", @@ -122,6 +130,14 @@ describe("blockKnip", () => { }, "block": [Function], }, + { + "addons": { + "files": [ + ".ts-prunerc*", + ], + }, + "block": [Function], + }, ], "files": { "knip.json": "{"$schema":"https://unpkg.com/knip@5.71.0/schema.json","entry":["src/index.ts"],"ignoreDependencies":["abc","def"],"ignoreExportsUsedInFile":{"interface":true,"type":true},"project":["src/**/*.ts"]}", @@ -184,10 +200,7 @@ describe("blockKnip", () => { { "addons": { "files": [ - ".knip*", - "knip.{c,m,t}*", - "knip.js", - "knip.jsonc", + ".ts-prunerc*", ], }, "block": [Function], diff --git a/src/blocks/blockKnip.ts b/src/blocks/blockKnip.ts index 14a8c7b5c..104685e74 100644 --- a/src/blocks/blockKnip.ts +++ b/src/blocks/blockKnip.ts @@ -68,6 +68,9 @@ export const blockKnip = base.createBlock({ }, }, }), + blockRemoveFiles({ + files: [".ts-prunerc*"], + }), ], files: { "knip.json": JSON.stringify({ diff --git a/src/integration.test.ts b/src/integration.test.ts index 1aeffbaa6..4d084dd58 100644 --- a/src/integration.test.ts +++ b/src/integration.test.ts @@ -67,6 +67,7 @@ test("Producing the everything preset matches the files in this repository", asy "mshick", "octoguide", "stefanzweifel", + "ts-prunerc", ], }), blockESLint({