fix built version not working

This commit is contained in:
GEEKiDoS
2024-04-10 09:26:03 +08:00
parent 83e63acc94
commit 223ea6ec4f
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -27,7 +27,7 @@
"typescript": "~5.3"
},
"scripts": {
"start": "node build/src/main.js",
"start": "node build/main.js",
"watch": "tsx watch src/main.ts",
"clean": "rimraf coverage build tmp",
"prebuild": "npm run lint",
+1 -1
View File
@@ -2,7 +2,7 @@ import { v } from "../../utils/kxml-value.js";
import { Game } from "./game.js";
import { Service } from "./service.js";
import { User } from "./user.js";
import data from './data.json';
import data from './data.json' with { type: "json" };
import { inject, singleton } from "tsyringe";
import { Db } from "mongodb";
+1 -1
View File
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es2022",
"module": "node16",
"module": "NodeNext",
"lib": ["ES2022"],
"moduleResolution": "node16",
"rootDir": "./src",