Fix deepscan errors

This commit is contained in:
Michael Shilman 2021-09-18 15:56:32 +08:00
parent 3e20d80b4d
commit 978420d0ba
2 changed files with 0 additions and 6 deletions

View File

@ -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) => {

View File

@ -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;