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.
- package/dist/CacheConsultant.js +2 -1
- package/dist/ConfigurationChief.d.ts +1 -0
- package/dist/ConfigurationValidator.d.ts +435 -375
- package/dist/ConfigurationValidator.js +1 -0
- package/dist/WorkspaceWorker.d.ts +2 -2
- package/dist/compilers/index.d.ts +326 -316
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/index.js +1 -0
- package/dist/plugins/xo/index.d.ts +12 -0
- package/dist/plugins/xo/index.js +21 -0
- package/dist/plugins/xo/types.d.ts +12 -0
- package/dist/plugins/xo/types.js +1 -0
- package/dist/plugins.d.ts +1 -1
- package/dist/typescript/SourceFileManager.js +1 -1
- package/dist/util/cli-arguments.d.ts +1 -1
- package/dist/util/cli-arguments.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/schema.json +4 -0
package/dist/CacheConsultant.js
CHANGED
|
@@ -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,
|
|
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;
|