knip 3.1.0 → 3.2.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.
@@ -15,6 +15,9 @@ const findPrettierDependencies = async (configFilePath, { manifest, isProduction
15
15
  const localConfig = configFilePath.endsWith('package.json')
16
16
  ? manifest.prettier
17
17
  : await load(configFilePath);
18
+ if (typeof localConfig === 'string') {
19
+ return [localConfig];
20
+ }
18
21
  return localConfig && Array.isArray(localConfig.plugins)
19
22
  ? localConfig.plugins.filter((plugin) => typeof plugin === 'string')
20
23
  : [];
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "3.1.0";
1
+ export declare const version = "3.2.0";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const version = '3.1.0';
1
+ export const version = '3.2.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knip",
3
- "version": "3.1.0",
3
+ "version": "3.2.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": {