diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-10-24 19:46:33 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-10-24 19:46:33 +1100 |
commit | c96d2e9bd885f927c12b6bb711301091e51e5477 (patch) | |
tree | ce115cd5cee8ca90d4e4dfe07979d67939d0af32 /scripts | |
parent | rearrange test client's index a bit (diff) | |
download | server-c96d2e9bd885f927c12b6bb711301091e51e5477.tar.xz |
Forgot some schemas + only generate schemas in util/schemas + add setup script
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/schema.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/schema.js b/scripts/schema.js index 90a346c9..debae7e1 100644 --- a/scripts/schema.js +++ b/scripts/schema.js @@ -47,7 +47,10 @@ function modify(obj) { } function main() { - const program = TJS.programFromConfig("tsconfig.json"); + const program = TJS.programFromConfig( + "tsconfig.json", + walk(path.join(__dirname, "..", "src", "util", "schemas")) + ); const generator = TJS.buildGenerator(program, settings); if (!generator || !program) return; |