Skip to content

Commit 4ebf265

Browse files
committed
Don't feel like updating all the paths in these scripts today
1 parent a25d3a2 commit 4ebf265

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed
File renamed without changes.

scripts/generate.ts generate.mjs

+9-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ async function gen_docfx() {
3535
exec("dotnet run docfx.csproj", { cwd: path.join(__dirname, "scripts"), stdio: "inherit" })
3636
}
3737

38-
async function gen_doxygen(sourceDir: string, outputDir: string) {
38+
/**
39+
* @param sourceDir {string}
40+
* @param outputDir {string}
41+
*/
42+
async function gen_doxygen(sourceDir, outputDir) {
3943
console.log(`Generating Doxygen: ${sourceDir} -> ${outputDir}`);
4044
if (fs.existsSync(doxygenTemp)) {
4145
fs.rmSync(doxygenTemp, { recursive: true, force: true });
@@ -101,7 +105,10 @@ async function gen_typedoc() {
101105
fs.unlinkSync("./docs/reference/js/.nojekyll");
102106
}
103107

104-
const sleep = (ms: number) => new Promise(r => setTimeout(r, ms));
108+
/**
109+
* @param ms {number}
110+
*/
111+
const sleep = (ms) => new Promise(r => setTimeout(r, ms));
105112

106113
// typedoc gets confused with this file here
107114
if (fs.existsSync("tsconfig.json")) {

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"write-translations": "docusaurus write-translations",
1414
"write-heading-ids": "docusaurus write-heading-ids",
1515
"typecheck": "tsc",
16-
"generate": "ts-node ./scripts/generate.ts",
16+
"generate": "ts-node ./generate.ts",
1717
"crowdin-download": "crowdin download",
1818
"crowdin-upload": "crowdin upload",
19-
"daily-tasks": "node ./scripts/daily-tasks.mjs"
19+
"daily-tasks": "node ./daily-tasks.mjs"
2020
},
2121
"dependencies": {
2222
"@docusaurus/core": "3.1.1",

0 commit comments

Comments
 (0)