mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 15:31:16 +08:00
FIX bug with resolving of preview.js (doh)
This commit is contained in:
parent
714250f2de
commit
c448e50208
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user