Skip to content

Commit 0a41103

Browse files
committed
Add configuration check for specified templates
part of #683
1 parent 9b16f26 commit 0a41103

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

core/lib/patternlab.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,16 @@ function checkConfiguration(patternlab) {
122122
if (!patternlab.config.outputFileSuffixes) {
123123
plutils.warning('Configuration Object "outputFileSuffixes" not found, and defaulted to the following:');
124124
console.log(outputFileSuffixes);
125-
plutils.warning('Since Pattern Lab Core 2.3.0 this configuration option is required. Suggest you add it to your patternlab-config.json file.');
125+
plutils.warning('Since Pattern Lab Node Core 2.3.0 this configuration option is required. Suggest you add it to your patternlab-config.json file.');
126126
console.log();
127127
}
128128
patternlab.config.outputFileSuffixes = _.extend(outputFileSuffixes, patternlab.config.outputFileSuffixes);
129+
130+
if (typeof patternlab.config.paths.source.patternlabFiles === 'string') {
131+
plutils.warning(`Configuration key [paths.source.patternlabFiles] inside patternlab-config.json was found as the string '${patternlab.config.paths.source.patternlabFiles}'`);
132+
plutils.warning('Since Pattern Lab Node Core 3.0.0 this key is an object. Suggest you update this key following this issue: https://github.com/pattern-lab/patternlab-node/issues/683.');
133+
}
134+
129135
}
130136

131137
/**

0 commit comments

Comments
 (0)