Skip to content

Commit

Permalink
Create reference directory for build
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeplowden committed Sep 2, 2024
1 parent 914e0a5 commit 265f9e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils/convert.js
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,10 @@ function buildParamDocs(docs) {
out.end();
}

if (!fs.existsSync(path.join(__dirname, '../docs/reference'))) {
fs.mkdirSync(path.join(__dirname, '../docs/reference'));
}

fs.writeFileSync(path.join(__dirname, '../docs/reference/data.json'), JSON.stringify(converted, null, 2));
fs.writeFileSync(path.join(__dirname, '../docs/reference/data.min.json'), JSON.stringify(converted));
buildParamDocs(JSON.parse(JSON.stringify(converted)));

0 comments on commit 265f9e7

Please sign in to comment.