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
commitc96d2e9bd885f927c12b6bb711301091e51e5477 (patch)
treece115cd5cee8ca90d4e4dfe07979d67939d0af32 /scripts
parentrearrange test client's index a bit (diff)
downloadserver-c96d2e9bd885f927c12b6bb711301091e51e5477.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;