knip 5.1.1 → 5.1.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.
|
@@ -213,6 +213,8 @@ export class ConfigurationChief {
|
|
|
213
213
|
const manifest = _require(join(dir, 'package.json'));
|
|
214
214
|
if (!manifest)
|
|
215
215
|
throw new LoaderError(`Unable to load package.json for ${dir}`);
|
|
216
|
+
if (dir === this.cwd && !manifest.name)
|
|
217
|
+
manifest.name = ROOT_WORKSPACE_NAME;
|
|
216
218
|
return { dir, manifest };
|
|
217
219
|
});
|
|
218
220
|
}
|
package/dist/constants.js
CHANGED
|
@@ -85,7 +85,7 @@ export function createCustomModuleResolver(customSys, compilerOptions, virtualFi
|
|
|
85
85
|
if (tsResolvedModule && !isVirtualFilePath(tsResolvedModule.resolvedFileName, virtualFileExtensions)) {
|
|
86
86
|
return tsResolvedModule;
|
|
87
87
|
}
|
|
88
|
-
const customResolvedModule = ts.resolveModuleName(
|
|
88
|
+
const customResolvedModule = ts.resolveModuleName(sanitizedSpecifier, containingFile, compilerOptions, customSys).resolvedModule;
|
|
89
89
|
if (!customResolvedModule || !isVirtualFilePath(customResolvedModule.resolvedFileName, virtualFileExtensions)) {
|
|
90
90
|
return customResolvedModule;
|
|
91
91
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "5.1.
|
|
1
|
+
export declare const version = "5.1.2";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '5.1.
|
|
1
|
+
export const version = '5.1.2';
|