knip 5.2.1 → 5.2.2
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.
|
@@ -67,7 +67,7 @@ export declare class ConfigurationChief {
|
|
|
67
67
|
ignoreBinaries: (string | RegExp)[];
|
|
68
68
|
ignoreDependencies: (string | RegExp)[];
|
|
69
69
|
};
|
|
70
|
-
getConfigForWorkspace(workspaceName: string, extensions
|
|
70
|
+
getConfigForWorkspace(workspaceName: string, extensions?: string[]): {
|
|
71
71
|
astro?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
72
72
|
svelte?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
73
73
|
vue?: (boolean | import("./types/config.js").EnsuredPluginConfiguration) | undefined;
|
|
@@ -275,7 +275,7 @@ export class ConfigurationChief {
|
|
|
275
275
|
name,
|
|
276
276
|
pkgName,
|
|
277
277
|
dir,
|
|
278
|
-
config: this.getConfigForWorkspace(name
|
|
278
|
+
config: this.getConfigForWorkspace(name),
|
|
279
279
|
ancestors: this.availableWorkspaceNames.reduce(getAncestors(name), []),
|
|
280
280
|
manifestPath: join(dir, 'package.json'),
|
|
281
281
|
};
|
|
@@ -21,6 +21,8 @@ export class SourceFileManager {
|
|
|
21
21
|
return sourceFile;
|
|
22
22
|
}
|
|
23
23
|
getSourceFile(filePath) {
|
|
24
|
+
if (this.sourceFileCache.has(filePath))
|
|
25
|
+
return this.sourceFileCache.get(filePath);
|
|
24
26
|
const ext = extname(filePath);
|
|
25
27
|
const compiler = this.syncCompilers.get(ext);
|
|
26
28
|
if (FOREIGN_FILE_EXTENSIONS.has(ext) && !compiler)
|
|
@@ -30,8 +32,6 @@ export class SourceFileManager {
|
|
|
30
32
|
return undefined;
|
|
31
33
|
return this.createSourceFile(filePath, '');
|
|
32
34
|
}
|
|
33
|
-
if (this.sourceFileCache.has(filePath))
|
|
34
|
-
return this.sourceFileCache.get(filePath);
|
|
35
35
|
const contents = ts.sys.readFile(filePath);
|
|
36
36
|
if (typeof contents !== 'string') {
|
|
37
37
|
if (isInternal(filePath))
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "5.2.
|
|
1
|
+
export declare const version = "5.2.2";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '5.2.
|
|
1
|
+
export const version = '5.2.2';
|