summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-24 19:46:33 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-24 19:46:33 +1100
commita2f57627913bf5d402b73933374693382a387ed2 (patch)
tree79c6c821306421907f78960298160a0067de3e68 /scripts
parentrearrange test client's index a bit (diff)
downloadserver-a2f57627913bf5d402b73933374693382a387ed2.tar.xz
Forgot some schemas + only generate schemas in util/schemas + add setup script
Diffstat (limited to 'scripts')
-rw-r--r--scripts/schema.js5
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;