knip 5.12.2 → 5.13.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.
@@ -3,7 +3,8 @@ import { timerify } from './util/Performance.js';
3
3
  import parsedArgValues from './util/cli-arguments.js';
4
4
  import { cwd, join } from './util/path.js';
5
5
  const defaultCacheLocation = join(cwd, 'node_modules', '.cache', 'knip');
6
- const { cache: isCache = false, cacheLocation = defaultCacheLocation, watch: isWatch = false } = parsedArgValues;
6
+ const { cache: isCache = false, watch: isWatch = false } = parsedArgValues;
7
+ const cacheLocation = parsedArgValues['cache-location'] ?? defaultCacheLocation;
7
8
  const create = timerify(fileEntryCache.create, 'createCache');
8
9
  const dummyFileDescriptor = { key: '', changed: true, notFound: true, meta: undefined };
9
10
  const isEnabled = isCache || isWatch;
@@ -121,6 +121,7 @@ export declare class ConfigurationChief {
121
121
  webpack?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
122
122
  wireit?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
123
123
  wrangler?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
124
+ xo?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
124
125
  yorkie?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
125
126
  drizzle?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
126
127
  githubActions?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;