@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hkdigital/lib-core",
3
- "version": "0.5.84",
3
+ "version": "0.5.85",
4
4
  "author": {
5
5
  "name": "HKdigital",
6
6
  "url": "https://hkdigital.nl"
@@ -670,7 +670,11 @@ async function validateFile(filePath) {
670
670
  !importPath.startsWith('$lib/') &&
671
671
  !importPath.startsWith('$');
672
672
 
673
- if (!isExternalPackage) {
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/')) {