mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-16 05:03:11 +08:00
Fix mistake and replace deprecated method.
This commit is contained in:
parent
c483b70509
commit
481007afa3
@ -106,8 +106,7 @@ async function copyAllStaticFiles(staticDir: any[] | undefined, outputDir: strin
|
||||
const [currentStaticDir, staticEndpoint] = dir.split(':').concat('/');
|
||||
const localStaticPath = path.resolve(currentStaticDir);
|
||||
|
||||
// @ts-ignore
|
||||
if (await !fs.exists(localStaticPath)) {
|
||||
if (!(await fs.pathExists(localStaticPath))) {
|
||||
logger.error(`Error: no such directory to load static files: ${localStaticPath}`);
|
||||
process.exit(-1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user