knip 6.32.1 → 6.32.2

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,14 +1,12 @@
1
1
  import { hasDependency } from '../../util/plugin.js';
2
- import { toLilconfig } from '../../util/plugin-config.js';
3
2
  const title = 'lint-staged';
4
3
  const enablers = ['lint-staged'];
5
4
  const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
6
5
  const config = [
7
- 'package.json',
8
- 'package.yaml',
9
- 'package.yml',
10
- ...toLilconfig('lint-staged'),
11
- ...toLilconfig('lintstaged'),
6
+ 'package.{json,yaml,yml}',
7
+ '.lintstagedrc',
8
+ '.lintstagedrc.{json,yaml,yml,mjs,mts,js,ts,cjs,cts}',
9
+ 'lint-staged.config.{mjs,mts,js,ts,cjs,cts}',
12
10
  ];
13
11
  const resolveEntry = async (value) => {
14
12
  if (Array.isArray(value))
@@ -2,7 +2,7 @@ import { hasDependency } from '../../util/plugin.js';
2
2
  const title = 'Oxfmt';
3
3
  const enablers = ['oxfmt'];
4
4
  const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
5
- const config = ['.oxfmtrc.json', '.oxfmtrc.jsonc', 'oxfmt.config.ts'];
5
+ const config = ['.oxfmtrc.json', '.oxfmtrc.jsonc', 'oxfmt.config.{ts,mts}'];
6
6
  const args = {
7
7
  config: true,
8
8
  };
@@ -6,7 +6,7 @@ import { hasDependency } from '../../util/plugin.js';
6
6
  const title = 'Oxlint';
7
7
  const enablers = ['oxlint', 'vite-plus'];
8
8
  const isEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
9
- const config = ['.oxlintrc.json', 'oxlint.config.ts', 'vite.config.{js,mjs,ts,cjs,mts,cts}'];
9
+ const config = ['.oxlintrc.json', 'oxlint.config.{ts,mts}', 'vite.config.{js,mjs,ts,cjs,mts,cts}'];
10
10
  const isViteConfig = (configFileName) => configFileName.startsWith('vite.config.');
11
11
  const args = {
12
12
  config: true,
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "6.32.1";
1
+ export declare const version = "6.32.2";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '6.32.1';
1
+ export const version = '6.32.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knip",
3
- "version": "6.32.1",
3
+ "version": "6.32.2",
4
4
  "description": "Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects",
5
5
  "keywords": [
6
6
  "analysis",
@@ -81,13 +81,13 @@
81
81
  "formatly": "^0.3.0",
82
82
  "get-tsconfig": "4.14.1",
83
83
  "jiti": "^2.7.0",
84
- "oxc-parser": "^0.142.0",
84
+ "oxc-parser": "^0.143.0",
85
85
  "oxc-resolver": "11.24.2",
86
86
  "picomatch": "^4.0.5",
87
87
  "smol-toml": "^1.7.1",
88
88
  "strip-json-comments": "5.0.3",
89
89
  "tinyglobby": "^0.2.17",
90
- "unbash": "^4.0.4",
90
+ "unbash": "^4.0.9",
91
91
  "yaml": "^2.9.0",
92
92
  "zod": "^4.4.3"
93
93
  },
@@ -98,7 +98,7 @@
98
98
  "@types/webpack": "^5.28.5",
99
99
  "codeclimate-types": "^0.3.1",
100
100
  "prettier": "^3.9.6",
101
- "tsx": "^4.23.5",
101
+ "tsx": "^4.23.11",
102
102
  "typescript": "7.0.2"
103
103
  },
104
104
  "engines": {