knip 2.12.0 → 2.12.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.
|
@@ -9,7 +9,15 @@ const findPostCSSDependencies = async (configFilePath, { manifest }) => {
|
|
|
9
9
|
? manifest?.postcss
|
|
10
10
|
: await load(configFilePath);
|
|
11
11
|
return config?.plugins
|
|
12
|
-
? (Array.isArray(config.plugins) ? config.plugins : Object.keys(config.plugins)).
|
|
12
|
+
? (Array.isArray(config.plugins) ? config.plugins : Object.keys(config.plugins)).flatMap(plugin => {
|
|
13
|
+
if (typeof plugin === 'string') {
|
|
14
|
+
return plugin;
|
|
15
|
+
}
|
|
16
|
+
if (Array.isArray(plugin) && typeof plugin[0] === 'string') {
|
|
17
|
+
return plugin[0];
|
|
18
|
+
}
|
|
19
|
+
return [];
|
|
20
|
+
})
|
|
13
21
|
: [];
|
|
14
22
|
};
|
|
15
23
|
export const findDependencies = timerify(findPostCSSDependencies);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "2.12.
|
|
1
|
+
export declare const version = "2.12.1";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '2.12.
|
|
1
|
+
export const version = '2.12.1';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "knip",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.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",
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
"@jest/types": "29.5.0",
|
|
64
64
|
"@npmcli/package-json": "3.1.0",
|
|
65
65
|
"@release-it/bumper": "4.0.2",
|
|
66
|
-
"@types/eslint": "8.
|
|
66
|
+
"@types/eslint": "8.40.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.2.
|
|
70
|
+
"@types/node": "20.2.3",
|
|
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.7",
|
|
74
|
+
"@typescript-eslint/parser": "5.59.7",
|
|
75
75
|
"c8": "7.13.0",
|
|
76
76
|
"eslint": "8.41.0",
|
|
77
77
|
"eslint-import-resolver-typescript": "3.5.5",
|