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. */