From 54d056c4b7e2729086730c33c6e400b1721e025a Mon Sep 17 00:00:00 2001 From: hacksalot Date: Thu, 1 Feb 2018 17:56:43 -0500 Subject: [PATCH] fix: exclude theme.json from interrogation --- dist/core/fresh-theme.js | 3 +++ src/core/fresh-theme.coffee | 2 ++ 2 files changed, 5 insertions(+) diff --git a/dist/core/fresh-theme.js b/dist/core/fresh-theme.js index ff12b43..7570333 100644 --- a/dist/core/fresh-theme.js +++ b/dist/core/fresh-theme.js @@ -142,6 +142,9 @@ Definition of the FRESHTheme class. _loadOne = function(absPath, formatsHash, tplFolder) { var absPathSafe, act, defFormats, idx, isPrimary, obj, outFmt, pathInfo, portion, ref, ref1, reg, res; pathInfo = parsePath(absPath); + if (pathInfo.basename.toLowerCase() === 'theme.json') { + return; + } absPathSafe = absPath.trim().toLowerCase(); outFmt = ''; act = 'copy'; diff --git a/src/core/fresh-theme.coffee b/src/core/fresh-theme.coffee index e0a65fb..48e0b78 100644 --- a/src/core/fresh-theme.coffee +++ b/src/core/fresh-theme.coffee @@ -129,6 +129,8 @@ _load = (formatsHash) -> _loadOne = ( absPath, formatsHash, tplFolder ) -> pathInfo = parsePath absPath + return if pathInfo.basename.toLowerCase() == 'theme.json' + absPathSafe = absPath.trim().toLowerCase() outFmt = '' act = 'copy'