fix: tsconfig
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@
|
||||
"dev:server": "nodemon --watch './**/*.ts' --exec 'node --experimental-specifier-resolution=node --loader ts-node/esm' server/src/server.ts",
|
||||
"dev:client": "npm run dev --prefix client",
|
||||
"dev": "concurrently \"npm run dev:server\" \"npm run dev:client\"",
|
||||
"build:server": "tsc -p .",
|
||||
"build:server": "tsc",
|
||||
"build:client": "npm run build --prefix client",
|
||||
"build": "concurrently \"npm run build:server\" \"npm run build:client\"",
|
||||
"test": "vitest run"
|
||||
|
||||
@@ -3,7 +3,7 @@ import path from "path";
|
||||
import dotenv from "dotenv";
|
||||
import http from "http";
|
||||
import { Server } from "socket.io";
|
||||
import Chess, { COLOR, Color, Move } from "./engine";
|
||||
import Chess, { COLOR, Color, Move } from "./engine.js";
|
||||
import { nanoid as nanoidOriginal } from "nanoid";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
+4
-4
@@ -47,11 +47,11 @@
|
||||
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
||||
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
||||
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
||||
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
||||
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
||||
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
|
||||
"outDir": "./server/dist", /* Specify an output folder for all emitted files. */
|
||||
// "removeComments": true, /* Disable emitting comments. */
|
||||
"noEmit": true, /* Disable emitting files from a compilation. */
|
||||
// "noEmit": true, /* Disable emitting files from a compilation. */
|
||||
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
||||
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
|
||||
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|
||||
@@ -101,9 +101,9 @@
|
||||
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
||||
},
|
||||
"exclude": [
|
||||
"server/src/__test__/"
|
||||
"server/src/__test__/**/*"
|
||||
],
|
||||
"include": [
|
||||
"server/src/"
|
||||
"server/src/**/*"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user