@hkdigital/lib-core 0.5.83 → 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
|
@@ -23,7 +23,8 @@ const SVELTEKIT_BUILT_IN_ALIASES = [
|
|
|
23
23
|
'$lib',
|
|
24
24
|
'$app',
|
|
25
25
|
'$env',
|
|
26
|
-
'$service-worker'
|
|
26
|
+
'$service-worker',
|
|
27
|
+
'$types'
|
|
27
28
|
];
|
|
28
29
|
|
|
29
30
|
/**
|
|
@@ -669,7 +670,11 @@ async function validateFile(filePath) {
|
|
|
669
670
|
!importPath.startsWith('$lib/') &&
|
|
670
671
|
!importPath.startsWith('$');
|
|
671
672
|
|
|
672
|
-
|
|
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) {
|
|
673
678
|
// Resolve to filesystem path
|
|
674
679
|
let jsdocFsPath;
|
|
675
680
|
if (importPath.startsWith('$lib/')) {
|