@hkdigital/lib-core 0.5.84 → 0.5.85
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/package.json
CHANGED
|
@@ -670,7 +670,11 @@ async function validateFile(filePath) {
|
|
|
670
670
|
!importPath.startsWith('$lib/') &&
|
|
671
671
|
!importPath.startsWith('$');
|
|
672
672
|
|
|
673
|
-
|
|
673
|
+
// Skip file existence check for $types imports (virtual module)
|
|
674
|
+
// Examples: ./$types, ../$types, ../../$types
|
|
675
|
+
const isTypesImport = importPath.match(/^\.\.?(?:\/\.\.)*\/\$types$/);
|
|
676
|
+
|
|
677
|
+
if (!isExternalPackage && !isTypesImport) {
|
|
674
678
|
// Resolve to filesystem path
|
|
675
679
|
let jsdocFsPath;
|
|
676
680
|
if (importPath.startsWith('$lib/')) {
|