Skip to content

Commit c104ea2

Browse files
authored
fix(build-resources): allow sibling directories of the same name as modules
fixes #55
1 parent 1e014e4 commit c104ea2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/build-resources.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ function ensurePathHasExtension(fullPath) {
8585

8686
try { stats = fileSystem.statSync(fullPathTest) } catch (_) {}
8787

88-
if (!stats)
88+
if (!stats || stats.isDirectory())
8989
try { stats = fileSystem.statSync(fullPathTest = fullPath + '.js') } catch (_) {}
9090

91-
if (!stats)
91+
if (!stats || stats.isDirectory())
9292
try { stats = fileSystem.statSync(fullPathTest = fullPath + '.ts') } catch (_) {}
9393

9494
if (stats && stats.isFile()) {

0 commit comments

Comments
 (0)