summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/schema.js2
-rw-r--r--scripts/syncronise.js1
2 files changed, 2 insertions, 1 deletions
diff --git a/scripts/schema.js b/scripts/schema.js
index be57adc2..3a69d002 100644
--- a/scripts/schema.js
+++ b/scripts/schema.js
@@ -50,7 +50,7 @@ function modify(obj) {
 
 function main() {
 	const program = TJS.programFromConfig(
-		"tsconfig.json",
+		path.join(__dirname, "..", "tsconfig.json"),
 		walk(path.join(__dirname, "..", "src", "util", "schemas"))
 	);
 	const generator = TJS.buildGenerator(program, settings);
diff --git a/scripts/syncronise.js b/scripts/syncronise.js
index 6ce47278..3ecb516e 100644
--- a/scripts/syncronise.js
+++ b/scripts/syncronise.js
@@ -16,4 +16,5 @@ const { initDatabase } = require("..");
 	console.log("synchronising");
 	await db.synchronize();
 	console.log("done");
+	db.destroy();
 })();
\ No newline at end of file