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 | a2f57627913bf5d402b73933374693382a387ed2 (patch) | |
tree | 79c6c821306421907f78960298160a0067de3e68 /scripts | |
parent | rearrange test client's index a bit (diff) | |
download | server-a2f57627913bf5d402b73933374693382a387ed2.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; |