Skip to content

Commit

Permalink
support new metaTags in SB8 indexers
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Feb 8, 2024
1 parent 8a220f4 commit d6e5cdc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/preset/indexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { extractStories } from '../parser/extract-stories.js';
import fs from 'fs-extra';
import { loadSvelteConfig } from '../config-loader.js';
import { storyNameFromExport, toId } from '@storybook/csf';
import { IndexInput, IndexedCSFFile, IndexerOptions } from '@storybook/types';
import type { IndexInput, IndexedCSFFile, IndexerOptions } from '@storybook/types';

export async function readStories(fileName: string) {
let code = (await fs.readFile(fileName, 'utf-8')).toString();
Expand Down Expand Up @@ -57,5 +57,6 @@ export async function createIndex(
name: story.name,
title: makeTitle(defs.meta.title),
tags: defs.meta.tags,
metaTags: defs.meta.tags,
}));
}

0 comments on commit d6e5cdc

Please sign in to comment.