@hkdigital/lib-core 0.5.76 → 0.5.77
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
|
@@ -286,6 +286,7 @@ async function findExternalBarrelExport(importPath, targetName) {
|
|
|
286
286
|
// 1. Explicit index.js imports
|
|
287
287
|
// 2. Component files (.svelte)
|
|
288
288
|
// 3. Class files (capitalized .js)
|
|
289
|
+
// 4. Imports without extension (missing extension or directory)
|
|
289
290
|
let shouldCheck = false;
|
|
290
291
|
|
|
291
292
|
if (lastPart === 'index.js') {
|
|
@@ -294,6 +295,9 @@ async function findExternalBarrelExport(importPath, targetName) {
|
|
|
294
295
|
shouldCheck = true;
|
|
295
296
|
} else if (lastPart.match(/^[A-Z][^/]*\.js$/)) {
|
|
296
297
|
shouldCheck = true;
|
|
298
|
+
} else if (!lastPart.includes('.')) {
|
|
299
|
+
// No extension - could be missing or directory import
|
|
300
|
+
shouldCheck = true;
|
|
297
301
|
}
|
|
298
302
|
|
|
299
303
|
if (!shouldCheck) return null;
|
|
@@ -421,6 +425,7 @@ async function findAliasBarrelExport(importPath, targetName) {
|
|
|
421
425
|
// 1. Explicit index.js imports
|
|
422
426
|
// 2. Component files (.svelte)
|
|
423
427
|
// 3. Class files (capitalized .js)
|
|
428
|
+
// 4. Imports without extension (missing extension or directory)
|
|
424
429
|
let shouldCheck = false;
|
|
425
430
|
|
|
426
431
|
if (lastPart === 'index.js') {
|
|
@@ -429,6 +434,9 @@ async function findAliasBarrelExport(importPath, targetName) {
|
|
|
429
434
|
shouldCheck = true;
|
|
430
435
|
} else if (lastPart.match(/^[A-Z][^/]*\.js$/)) {
|
|
431
436
|
shouldCheck = true;
|
|
437
|
+
} else if (!lastPart.includes('.')) {
|
|
438
|
+
// No extension - could be missing or directory import
|
|
439
|
+
shouldCheck = true;
|
|
432
440
|
}
|
|
433
441
|
|
|
434
442
|
if (!shouldCheck) return null;
|