knip 2.10.4 → 2.11.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.
- package/dist/index.js +3 -2
- package/dist/plugins/eslint/helpers.js +2 -0
- package/dist/plugins/typedoc/index.js +8 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -208,9 +208,10 @@ export const main = async (unresolvedConfiguration) => {
|
|
|
208
208
|
importedModule.isReExport = importItems.isReExport;
|
|
209
209
|
importedModule.isReExportedBy.add(filePath);
|
|
210
210
|
}
|
|
211
|
-
if (importItems.isDynamic)
|
|
211
|
+
if (importItems.isDynamic)
|
|
212
212
|
importedModule.isDynamic = importItems.isDynamic;
|
|
213
|
-
|
|
213
|
+
if (importItems.isStar)
|
|
214
|
+
importedModule.isStar = importItems.isStar;
|
|
214
215
|
}
|
|
215
216
|
}
|
|
216
217
|
duplicate.forEach(symbols => {
|
|
@@ -7,6 +7,8 @@ import { fallback } from './fallback.js';
|
|
|
7
7
|
const getDependencies = (config) => {
|
|
8
8
|
const extendsSpecifiers = config.extends ? [config.extends].flat().map(resolveExtendsSpecifier) : [];
|
|
9
9
|
const plugins = config.plugins ? config.plugins.map(resolvePluginPackageName) : [];
|
|
10
|
+
if (extendsSpecifiers.includes('eslint-plugin-prettier'))
|
|
11
|
+
extendsSpecifiers.push('eslint-config-prettier');
|
|
10
12
|
const parser = config.parser;
|
|
11
13
|
const extraParsers = config.parserOptions?.babelOptions?.presets ?? [];
|
|
12
14
|
const settings = config.settings ? getDependenciesFromSettings(config.settings) : [];
|
|
@@ -8,9 +8,15 @@ export const CONFIG_FILE_PATTERNS = [
|
|
|
8
8
|
'typedoc.config.{js,cjs}',
|
|
9
9
|
'.config/typedoc.{js,cjs,json,jsonc}',
|
|
10
10
|
'.config/typedoc.config.{js,cjs}',
|
|
11
|
+
'package.json',
|
|
12
|
+
'tsconfig.json',
|
|
11
13
|
];
|
|
12
|
-
const findTypeDocDependencies = async (configFilePath) => {
|
|
13
|
-
const config =
|
|
14
|
+
const findTypeDocDependencies = async (configFilePath, { manifest }) => {
|
|
15
|
+
const config = configFilePath.endsWith('package.json')
|
|
16
|
+
? manifest.typedocOptions
|
|
17
|
+
: configFilePath.endsWith('tsconfig.json')
|
|
18
|
+
? (await load(configFilePath)).typedocOptions
|
|
19
|
+
: await load(configFilePath);
|
|
14
20
|
return config?.plugin ?? [];
|
|
15
21
|
};
|
|
16
22
|
export const findDependencies = timerify(findTypeDocDependencies);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "2.
|
|
1
|
+
export declare const version = "2.11.0";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '2.
|
|
1
|
+
export const version = '2.11.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "knip",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"description": "Find unused files, dependencies and exports in your TypeScript and JavaScript projects",
|
|
5
5
|
"homepage": "https://github.com/webpro/knip",
|
|
6
6
|
"repository": "github:webpro/knip",
|
|
@@ -61,23 +61,23 @@
|
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@jest/types": "29.5.0",
|
|
64
|
-
"@npmcli/package-json": "3.
|
|
64
|
+
"@npmcli/package-json": "3.1.0",
|
|
65
65
|
"@release-it/bumper": "4.0.2",
|
|
66
66
|
"@types/eslint": "8.37.0",
|
|
67
67
|
"@types/js-yaml": "4.0.5",
|
|
68
68
|
"@types/micromatch": "4.0.2",
|
|
69
69
|
"@types/minimist": "1.2.2",
|
|
70
|
-
"@types/node": "20.1.
|
|
70
|
+
"@types/node": "20.1.7",
|
|
71
71
|
"@types/npmcli__map-workspaces": "3.0.1",
|
|
72
72
|
"@types/webpack": "5.28.1",
|
|
73
|
-
"@typescript-eslint/eslint-plugin": "5.59.
|
|
74
|
-
"@typescript-eslint/parser": "5.59.
|
|
73
|
+
"@typescript-eslint/eslint-plugin": "5.59.6",
|
|
74
|
+
"@typescript-eslint/parser": "5.59.6",
|
|
75
75
|
"c8": "7.13.0",
|
|
76
76
|
"eslint": "8.40.0",
|
|
77
77
|
"eslint-import-resolver-typescript": "3.5.5",
|
|
78
78
|
"eslint-plugin-import": "2.27.5",
|
|
79
|
-
"eslint-plugin-n": "
|
|
80
|
-
"glob": "10.2.
|
|
79
|
+
"eslint-plugin-n": "16.0.0",
|
|
80
|
+
"glob": "10.2.4",
|
|
81
81
|
"prettier": "2.8.8",
|
|
82
82
|
"release-it": "15.10.3",
|
|
83
83
|
"remark-cli": "11.0.0",
|