From 994b0c938e4610cdc4de0e4a0044d216f2d9aa53 Mon Sep 17 00:00:00 2001 From: zacharias Date: Mon, 5 May 2025 23:05:24 +0200 Subject: [PATCH] Fixed Things --- .gitignore | 4 +++- package.json | 3 ++- tsconfig.json | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 6f65c48..1e22e1d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -./build +build + +./tsconfig.tsbuildinfo \ No newline at end of file diff --git a/package.json b/package.json index 5751329..ac8d063 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,9 @@ "license": "MIT", "author": "Zacharias", "type": "module", - "main": "app.js", + "main": "./build/app.js", "scripts": { + "start": "node build/app.js", "test": "echo \"Error: no test specified\" && exit 1" } } diff --git a/tsconfig.json b/tsconfig.json index 6e9d36c..92c0dbd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -25,7 +25,7 @@ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ /* Modules */ - "module": "module", /* Specify what module code is generated. */ + "module": "commonjs", /* Specify what module code is generated. */ "rootDir": "./src/", /* Specify the root folder within your source files. */ // "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. */ @@ -57,7 +57,7 @@ // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ // "noEmit": true, /* Disable emitting files from a compilation. */ // "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": "./build/", /* Specify an output folder for all emitted files. */ + "outDir": "./build/", /* Specify an output folder for all emitted files. */ // "removeComments": true, /* Disable emitting comments. */ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */