From ce14d38073b011bcf6b246a2afeb80fdd16bab8c Mon Sep 17 00:00:00 2001 From: Lucas Wiener Date: Sat, 29 Sep 2018 12:59:03 +0200 Subject: [PATCH] Fix so that internal re-natal .cljs files are excluded from require scan (#194) --- re-natal.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/re-natal.coffee b/re-natal.coffee index fcdf672..e67eeb8 100644 --- a/re-natal.coffee +++ b/re-natal.coffee @@ -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