generated from nhcarrigan/template
This commit is contained in:
+11
-2
@@ -68,9 +68,18 @@ const results = await Promise.all(
|
||||
|
||||
const flat = results.flat();
|
||||
|
||||
const string = `/**
|
||||
* @copyright nhcarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
export const documentationData = ${JSON.stringify(flat, null, 2)};
|
||||
`;
|
||||
|
||||
await fs.writeFile(
|
||||
path.resolve(process.cwd(), "src", "data", "docs.json"),
|
||||
JSON.stringify(flat, null, 2)
|
||||
path.resolve(process.cwd(), "src", "data", "docs.ts"),
|
||||
string
|
||||
);
|
||||
|
||||
await fs.rm(docsDirectory, { recursive: true, force: true });
|
||||
|
||||
Reference in New Issue
Block a user