diff --git a/src/index.ts b/src/index.ts index 5919977..23d492a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -18,7 +18,7 @@ interface Instance { } const app = express(); -import instances from "./webpage/instances.json" assert { type: "json" }; +import instances from "./webpage/instances.json" with { type: "json" }; const instanceNames = new Map(); for (const instance of instances) { diff --git a/tsconfig.json b/tsconfig.json index c826805..514583e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -25,7 +25,7 @@ "resolveJsonModule": true, "sourceMap": true, "strict": true, - "target": "ES2022", + "target": "ESNext", "useDefineForClassFields": true, "resolvePackageJsonImports": true, "outDir": "./dist",