Skip to content

Commit

Permalink
chore(build): reuse path variable (vitest-dev#1221)
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Feb 8, 2022
1 parent 2473407 commit 1829ce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/utils.ts
Expand Up @@ -108,7 +108,7 @@ export async function readIndexes() {

fn.docs = `${DOCS_URL}/${pkg.name}/${fnName}/`

const mdRaw = await fs.readFile(join(dir, fnName, 'index.md'), 'utf-8')
const mdRaw = await fs.readFile(mdPath, 'utf-8')

const { content: md, data: frontmatter } = matter(mdRaw)
const category = frontmatter.category
Expand Down

0 comments on commit 1829ce3

Please sign in to comment.