summary refs log tree commit diff
path: root/api/scripts/generate_schema.js
diff options
context:
space:
mode:
Diffstat (limited to 'api/scripts/generate_schema.js')
-rw-r--r--api/scripts/generate_schema.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/api/scripts/generate_schema.js b/api/scripts/generate_schema.js
index 22d0b02e..fc787c22 100644
--- a/api/scripts/generate_schema.js
+++ b/api/scripts/generate_schema.js
@@ -1,9 +1,9 @@
 // https://mermade.github.io/openapi-gui/#
 // https://editor.swagger.io/
-import path from "path";
-import fs from "fs";
-import * as TJS from "typescript-json-schema";
-import "missing-native-js-functions";
+const path = require("path");
+const fs = require("fs");
+const TJS = require("typescript-json-schema");
+require("missing-native-js-functions");
 const schemaPath = path.join(__dirname, "..", "assets", "schemas.json");
 
 const settings = {