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.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;