From d042ef63c7097ae1888c801231be1ad1e316b56a Mon Sep 17 00:00:00 2001 From: tinarskii Date: Sat, 22 Oct 2022 13:49:54 +0700 Subject: [PATCH] fix: change generated output to cjs --- package.json | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7b865e8..6148a00 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "description": "An open-source, general purpose discord bot with a lot of commands and utilities", "main": "src/index.js", - "type": "module", + "type": "commonjs", "scripts": { "start": "cd dist && node index", "format": "prettier -w .", diff --git a/tsconfig.json b/tsconfig.json index e7e6920..b8303f2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -24,7 +24,7 @@ // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ /* Modules */ - "module": "esnext" /* 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": "node" /* Specify how TypeScript looks up a file from a given module specifier. */, "baseUrl": "src" /* Specify the base directory to resolve non-relative module names. */,