summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-12-17 06:55:55 +0100
committerRory& <root@rory.gay>2025-12-17 06:55:55 +0100
commit877339c8af23baa9be6b5de4b74b7b2f517618d8 (patch)
tree101fccedc67bc5af35791ce957e657c17a4a2310 /scripts
parentDrop staging migration scripts - these are years old now... (diff)
downloadserver-ts-877339c8af23baa9be6b5de4b74b7b2f517618d8.tar.xz
Prettier a few files
Diffstat (limited to 'scripts')
-rw-r--r--scripts/genIndex.js6
-rw-r--r--scripts/license.js7
2 files changed, 4 insertions, 9 deletions
diff --git a/scripts/genIndex.js b/scripts/genIndex.js

index 701a7566b..c1b682274 100644 --- a/scripts/genIndex.js +++ b/scripts/genIndex.js
@@ -50,12 +50,12 @@ if (fs.existsSync(path.join(targetDir, "index.js")) || fs.existsSync(path.join(t process.exit(1); } -const dirs = fs.readdirSync(targetDir).filter(f => fs.statSync(path.join(targetDir, f)).isDirectory()); +const dirs = fs.readdirSync(targetDir).filter((f) => fs.statSync(path.join(targetDir, f)).isDirectory()); for (const dir of dirs) { content += `export * from "./${dir}";\n`; } -const files = fs.readdirSync(targetDir).filter(f => f.endsWith(".js") || f.endsWith(".ts")); +const files = fs.readdirSync(targetDir).filter((f) => f.endsWith(".js") || f.endsWith(".ts")); for (const file of files) { const filePath = path.join(targetDir, file); const stat = fs.statSync(filePath); @@ -66,4 +66,4 @@ for (const file of files) { } } -fs.writeFileSync(path.join(targetDir, "index.ts"), content); \ No newline at end of file +fs.writeFileSync(path.join(targetDir, "index.ts"), content); diff --git a/scripts/license.js b/scripts/license.js
index b12080dd9..380a3ed6f 100644 --- a/scripts/license.js +++ b/scripts/license.js
@@ -34,12 +34,7 @@ const addToDir = (dir) => { const commentStrings = languageCommentStrings[fileType]; if (!commentStrings) continue; - const preamble = - commentStrings[0] + - "\n" + - SPACEBAR_LICENSE_PREAMBLE + - "\n" + - commentStrings[1]; + const preamble = commentStrings[0] + "\n" + SPACEBAR_LICENSE_PREAMBLE + "\n" + commentStrings[1]; if (file.startsWith(preamble)) { continue;