summary refs log tree commit diff
path: root/scripts/schema.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/schema.js')
-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 = {};