FIX bug with resolving of preview.js (doh)

This commit is contained in:
Norbert de Langen 2019-11-13 11:52:09 +01:00
parent 714250f2de
commit c448e50208

View File

@ -91,10 +91,10 @@ const getPreviewFile = (configDir: string): string | false => {
const configTS = path.join(configDir, 'config.ts'); const configTS = path.join(configDir, 'config.ts');
if (isFile(previewTS)) { if (isFile(previewTS)) {
return configTS; return previewTS;
} }
if (isFile(preview)) { if (isFile(preview)) {
return config; return preview;
} }
if (isFile(configTS)) { if (isFile(configTS)) {
return configTS; return configTS;