mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-03 05:04:51 +08:00
Fix deepscan errors
This commit is contained in:
parent
3e20d80b4d
commit
978420d0ba
@ -16,9 +16,6 @@ type ExtractedStories = Record<string, ExtractedStory>;
|
||||
|
||||
async function extractStories(normalizedStories: NormalizedStoriesEntry[], configDir: string) {
|
||||
const storiesGlobs = normalizedStories.map((s) => s.glob);
|
||||
if (!storiesGlobs) {
|
||||
throw new Error('No stories glob');
|
||||
}
|
||||
const storyFiles: string[] = [];
|
||||
await Promise.all(
|
||||
storiesGlobs.map(async (storiesGlob) => {
|
||||
|
@ -1,5 +1,4 @@
|
||||
/* eslint-disable no-underscore-dangle */
|
||||
import global from 'global';
|
||||
import fs from 'fs-extra';
|
||||
import { parse } from '@babel/parser';
|
||||
import generate from '@babel/generator';
|
||||
@ -7,8 +6,6 @@ import * as t from '@babel/types';
|
||||
import traverse, { Node } from '@babel/traverse';
|
||||
import { toId, isExportStory, storyNameFromExport } from '@storybook/csf';
|
||||
|
||||
const { FEATURES = {} } = global;
|
||||
|
||||
const logger = console;
|
||||
interface Meta {
|
||||
title?: string;
|
||||
|
Loading…
x
Reference in New Issue
Block a user