From 4ebf26562a435f7f906dc4c597d8e23484816eb3 Mon Sep 17 00:00:00 2001 From: Caelan Sayler Date: Sat, 16 Mar 2024 21:23:04 +0000 Subject: [PATCH] Don't feel like updating all the paths in these scripts today --- scripts/daily-tasks.mjs => daily-tasks.mjs | 0 scripts/generate.ts => generate.mjs | 11 +++++++++-- package.json | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) rename scripts/daily-tasks.mjs => daily-tasks.mjs (100%) rename scripts/generate.ts => generate.mjs (95%) diff --git a/scripts/daily-tasks.mjs b/daily-tasks.mjs similarity index 100% rename from scripts/daily-tasks.mjs rename to daily-tasks.mjs diff --git a/scripts/generate.ts b/generate.mjs similarity index 95% rename from scripts/generate.ts rename to generate.mjs index caec1bb..0b79f95 100644 --- a/scripts/generate.ts +++ b/generate.mjs @@ -35,7 +35,11 @@ async function gen_docfx() { exec("dotnet run docfx.csproj", { cwd: path.join(__dirname, "scripts"), stdio: "inherit" }) } -async function gen_doxygen(sourceDir: string, outputDir: string) { +/** + * @param sourceDir {string} + * @param outputDir {string} + */ +async function gen_doxygen(sourceDir, outputDir) { console.log(`Generating Doxygen: ${sourceDir} -> ${outputDir}`); if (fs.existsSync(doxygenTemp)) { fs.rmSync(doxygenTemp, { recursive: true, force: true }); @@ -101,7 +105,10 @@ async function gen_typedoc() { fs.unlinkSync("./docs/reference/js/.nojekyll"); } -const sleep = (ms: number) => new Promise(r => setTimeout(r, ms)); +/** + * @param ms {number} + */ +const sleep = (ms) => new Promise(r => setTimeout(r, ms)); // typedoc gets confused with this file here if (fs.existsSync("tsconfig.json")) { diff --git a/package.json b/package.json index 6c36ca0..56e4864 100644 --- a/package.json +++ b/package.json @@ -13,10 +13,10 @@ "write-translations": "docusaurus write-translations", "write-heading-ids": "docusaurus write-heading-ids", "typecheck": "tsc", - "generate": "ts-node ./scripts/generate.ts", + "generate": "ts-node ./generate.ts", "crowdin-download": "crowdin download", "crowdin-upload": "crowdin upload", - "daily-tasks": "node ./scripts/daily-tasks.mjs" + "daily-tasks": "node ./daily-tasks.mjs" }, "dependencies": { "@docusaurus/core": "3.1.1",