Skip to content

Commit

Permalink
Fix so that internal re-natal .cljs files are excluded from require s…
Browse files Browse the repository at this point in the history
…can (#194)
  • Loading branch information
wnr authored and drapanjanas committed Sep 29, 2018
1 parent a976a59 commit ce14d38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion re-natal.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,8 @@ extractRequiresFromSourceFile = (file) ->

buildRequireByPlatformMap = () ->
onlyUserCljs = (item) -> fpath.extname(item.path) == '.cljs' and
item.path.indexOf('/target/') < 0 # ignore target dir
item.path.indexOf('/target/') < 0 and # ignore target dir
item.path.indexOf('/re-natal/') < 0 # ignore re-natal internal cljs files (can happen if re-natal is installed as a devDependency)
files = klawSync process.cwd(),
nodir: true
filter: onlyUserCljs
Expand Down

0 comments on commit ce14d38

Please sign in to comment.