knip 2.10.0 → 2.10.1
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/ConfigurationChief.js +5 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +7 -7
|
@@ -195,6 +195,7 @@ export class ConfigurationChief {
|
|
|
195
195
|
}
|
|
196
196
|
getEnabledWorkspaces() {
|
|
197
197
|
const allWorkspaces = this.getAllWorkspaces();
|
|
198
|
+
const ignoredWorkspaces = this.getIgnoredWorkspaces();
|
|
198
199
|
const getAncestors = (name) => (ancestors, ancestorName) => {
|
|
199
200
|
if (name === ancestorName)
|
|
200
201
|
return ancestors;
|
|
@@ -203,7 +204,10 @@ export class ConfigurationChief {
|
|
|
203
204
|
return ancestors;
|
|
204
205
|
};
|
|
205
206
|
const workspaces = workspaceArg ? [workspaceArg] : allWorkspaces;
|
|
206
|
-
return workspaces
|
|
207
|
+
return workspaces
|
|
208
|
+
.filter(w => !ignoredWorkspaces.includes(w))
|
|
209
|
+
.sort(byPathDepth)
|
|
210
|
+
.map((name) => ({
|
|
207
211
|
name,
|
|
208
212
|
pkgName: this.manifestWorkspaces.get(name) ?? this.manifest?.name,
|
|
209
213
|
dir: join(this.cwd, name),
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "2.10.
|
|
1
|
+
export declare const version = "2.10.1";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '2.10.
|
|
1
|
+
export const version = '2.10.1';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "knip",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.1",
|
|
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",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"summary": "^2.1.0",
|
|
58
58
|
"typescript": "^5.0.2",
|
|
59
59
|
"zod": "^3.20.6",
|
|
60
|
-
"zod-validation-error": "1.
|
|
60
|
+
"zod-validation-error": "1.3.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@jest/types": "29.5.0",
|
|
@@ -67,13 +67,13 @@
|
|
|
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": "18.15.
|
|
71
|
-
"@types/npmcli__map-workspaces": "3.0.
|
|
70
|
+
"@types/node": "18.15.13",
|
|
71
|
+
"@types/npmcli__map-workspaces": "3.0.1",
|
|
72
72
|
"@types/webpack": "5.28.1",
|
|
73
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
74
|
-
"@typescript-eslint/parser": "5.
|
|
73
|
+
"@typescript-eslint/eslint-plugin": "5.59.0",
|
|
74
|
+
"@typescript-eslint/parser": "5.59.0",
|
|
75
75
|
"c8": "7.13.0",
|
|
76
|
-
"eslint": "8.
|
|
76
|
+
"eslint": "8.39.0",
|
|
77
77
|
"eslint-import-resolver-typescript": "3.5.5",
|
|
78
78
|
"eslint-plugin-import": "2.27.5",
|
|
79
79
|
"eslint-plugin-n": "15.7.0",
|