Update tsconfig and fix main script

This commit is contained in:
Hri7566 2023-09-07 19:15:25 -04:00
parent 901dfe7e94
commit b6c2adeff4
2 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,7 @@
"name": "mpp-server", "name": "mpp-server",
"version": "2.0.0", "version": "2.0.0",
"description": "Hri7566's MPP Server", "description": "Hri7566's MPP Server",
"main": "index.js", "main": "out/index.js",
"scripts": { "scripts": {
"start": "node .", "start": "node .",
"build": "npx tsc", "build": "npx tsc",

View File

@ -31,6 +31,9 @@
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
"paths": {
"~/*": ["./src/*"]
},
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */ // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
// "types": [], /* Specify type package names to be included without being referenced in a source file. */ // "types": [], /* Specify type package names to be included without being referenced in a source file. */