Skip to content

Commit ab142be

Browse files
authored
Move knip args (#62865)
1 parent c21f73f commit ab142be

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Herebyfile.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ export const knip = task({
601601
name: "knip",
602602
description: "Runs knip.",
603603
dependencies: [generateDiagnostics],
604-
run: () => exec(process.execPath, ["node_modules/knip/bin/knip.js", "--tags=+internal,-knipignore", "--exclude=duplicates,enumMembers", ...(cmdLineOptions.fix ? ["--fix"] : [])]),
604+
run: () => exec(process.execPath, ["node_modules/knip/bin/knip.js", ...(cmdLineOptions.fix ? ["--fix"] : [])]),
605605
});
606606

607607
const { main: typingsInstaller, watch: watchTypingsInstaller } = entrypointBuildTask({

knip.jsonc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"$schema": "https://unpkg.com/knip@5/schema.json",
3+
"exclude": ["duplicates", "enumMembers"],
4+
"tags": ["+internal", "-knipignore"],
35
"includeEntryExports": true,
46
"entry": [
57
"Herebyfile.mjs",
@@ -14,7 +16,6 @@
1416
"src/testRunner/_namespaces/Harness.ts",
1517

1618
// The rest of the entry files, mostly to track used dependencies:
17-
".eslint-plugin-local.cjs",
1819
".gulp.js",
1920
"scripts/eslint/{rules,tests}/*.cjs",
2021
"scripts/*.{cjs,mjs}"

src/compiler/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4792,7 +4792,7 @@ export function getTypeParameterFromJsDoc(node: TypeParameterDeclaration & { par
47924792
return typeParameters && find(typeParameters, p => p.name.escapedText === name);
47934793
}
47944794

4795-
/** @internal @knipignore */
4795+
/** @internal */
47964796
export function hasTypeArguments(node: Node): node is HasTypeArguments {
47974797
return !!(node as HasTypeArguments).typeArguments;
47984798
}

0 commit comments

Comments
 (0)