summary refs log tree commit diff
path: root/scripts/schema.js
diff options
context:
space:
mode:
authorEmma [it/its]@Rory& <root@rory.gay>2023-12-11 01:12:54 +0100
committerEmma [it/its]@Rory& <root@rory.gay>2023-12-11 01:12:54 +0100
commit0a8ceb9e6349284e75545a01ffad608b020f78e2 (patch)
tree17a9163f963eddabf9168b0b630096b2f7535b64 /scripts/schema.js
parentPrettier: use editorconfig (diff)
downloadserver-dev/emma-refactors.tar.xz
Actually run prettier dev/emma-refactors
Diffstat (limited to '')
-rw-r--r--scripts/schema.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/scripts/schema.js b/scripts/schema.js

index ff3280ac..f8374079 100644 --- a/scripts/schema.js +++ b/scripts/schema.js
@@ -62,18 +62,13 @@ const Excluded = [ function main() { const program = TJS.programFromConfig( path.join(__dirname, "..", "tsconfig.json"), - walk(path.join(__dirname, "..", "src", "util", "schemas")), + walk(path.join(__dirname, "..", "src", "util", "schemas")) ); const generator = TJS.buildGenerator(program, settings); if (!generator || !program) return; let schemas = generator.getUserSymbols().filter((x) => { - return ( - (x.endsWith("Schema") || - x.endsWith("Response") || - x.startsWith("API")) && - !Excluded.includes(x) - ); + return (x.endsWith("Schema") || x.endsWith("Response") || x.startsWith("API")) && !Excluded.includes(x); }); var definitions = {};