From b6c2adeff4ca1d302de9ada9b39906aac2d319db Mon Sep 17 00:00:00 2001 From: Hri7566 Date: Thu, 7 Sep 2023 19:15:25 -0400 Subject: [PATCH] Update tsconfig and fix main script --- package.json | 2 +- tsconfig.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 09977f5..8f2f6af 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "mpp-server", "version": "2.0.0", "description": "Hri7566's MPP Server", - "main": "index.js", + "main": "out/index.js", "scripts": { "start": "node .", "build": "npx tsc", diff --git a/tsconfig.json b/tsconfig.json index ab7739d..70ba282 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -31,6 +31,9 @@ // "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. */ // "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. */ // "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. */