knip 5.23.2 → 5.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { hasDependency } from '#p/util/plugin.js';
2
2
  import { resolveConfig, resolveEntryPaths } from '../vitest/index.js';
3
3
  const title = 'Vite';
4
- const enablers = ['vite'];
4
+ const enablers = ['vite', 'vitest'];
5
5
  const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
6
6
  export const config = ['vite*.config.{js,mjs,ts,cjs,mts,cts}'];
7
7
  const production = [];
@@ -79,7 +79,7 @@ export default visit(() => true, (node, { isFixExports, isFixTypes, isReportClas
79
79
  return { node, identifier, type: SymbolType.TYPE, pos, fix };
80
80
  }
81
81
  if (ts.isInterfaceDeclaration(node)) {
82
- const identifier = node.name.getText();
82
+ const identifier = defaultKeyword ? 'default' : node.name.getText();
83
83
  const pos = node.name.getStart();
84
84
  const fix = getTypeFix(exportKeyword);
85
85
  return { node, identifier, type: SymbolType.INTERFACE, pos, fix };
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "5.23.2";
1
+ export declare const version = "5.24.0";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '5.23.2';
1
+ export const version = '5.24.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knip",
3
- "version": "5.23.2",
3
+ "version": "5.24.0",
4
4
  "description": "Find unused files, dependencies and exports in your TypeScript and JavaScript projects",
5
5
  "homepage": "https://knip.dev",
6
6
  "repository": {
@@ -65,7 +65,7 @@
65
65
  "@snyk/github-codeowners": "1.1.0",
66
66
  "easy-table": "1.2.0",
67
67
  "fast-glob": "^3.3.2",
68
- "jiti": "^1.21.0",
68
+ "jiti": "^1.21.6",
69
69
  "js-yaml": "^4.1.0",
70
70
  "minimist": "^1.2.8",
71
71
  "picocolors": "^1.0.0",
@@ -86,16 +86,16 @@
86
86
  "devDependencies": {
87
87
  "@jest/types": "^29.6.3",
88
88
  "@release-it/bumper": "^6.0.1",
89
- "@types/bun": "^1.1.4",
89
+ "@types/bun": "^1.1.6",
90
90
  "@types/js-yaml": "^4.0.9",
91
91
  "@types/minimist": "^1.2.5",
92
- "@types/picomatch": "2.3.3",
92
+ "@types/picomatch": "2.3.4",
93
93
  "@types/resolve": "^1.20.6",
94
94
  "@types/webpack": "^5.28.5",
95
- "@wdio/types": "^8.38.2",
96
- "glob": "^10.3.12",
95
+ "@wdio/types": "^8.39.0",
96
+ "glob": "^10.4.2",
97
97
  "playwright": "^1.44.1",
98
- "release-it": "^17.4.0",
98
+ "release-it": "^17.4.1",
99
99
  "type-fest": "^4.20.0",
100
100
  "typescript": "^5.5.2"
101
101
  },