@christiango/unbarrel 0.12.0 → 0.12.1
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/lib/resolveModulePath.js
CHANGED
|
@@ -20,8 +20,8 @@ function resolveModulePath(absoluteModulePath) {
|
|
|
20
20
|
}
|
|
21
21
|
catch {
|
|
22
22
|
// If that fails, try common TypeScript extensions and index files
|
|
23
|
-
const extensions = ['.ts', '.tsx', '.js', '.jsx'];
|
|
24
|
-
const indexFiles = ['index.ts', 'index.tsx', 'index.js', 'index.jsx'];
|
|
23
|
+
const extensions = ['.ts', '.tsx', '.d.ts', '.js', '.jsx'];
|
|
24
|
+
const indexFiles = ['index.ts', 'index.tsx', 'index.d.ts', 'index.js', 'index.jsx'];
|
|
25
25
|
// Try direct file with extensions
|
|
26
26
|
for (const ext of extensions) {
|
|
27
27
|
const filePath = absoluteModulePath + ext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveModulePath.js","sourceRoot":"","sources":["../src/resolveModulePath.ts"],"names":[],"mappings":";;;;;AASA,8CAoCC;AA7CD,sDAAyB;AACzB,0DAA6B;AAE7B,+CAAqD;AAErD;;;GAGG;AACH,SAAgB,iBAAiB,CAAC,kBAA0B;IAC1D,4EAA4E;IAC5E,IAAI,gBAAoC,CAAC;IACzC,IAAI,CAAC;QACH,mCAAmC;QACnC,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACzD,CAAC;IAAC,MAAM,CAAC;QACP,kEAAkE;QAClE,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"resolveModulePath.js","sourceRoot":"","sources":["../src/resolveModulePath.ts"],"names":[],"mappings":";;;;;AASA,8CAoCC;AA7CD,sDAAyB;AACzB,0DAA6B;AAE7B,+CAAqD;AAErD;;;GAGG;AACH,SAAgB,iBAA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