From e62b23764203f1457c2534b8f389551f29d91bf2 Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Thu, 1 Dec 2022 11:11:12 +0000 Subject: [PATCH] Updated the project to utilize ESM --- package.json | 1 + tsconfig.json | 13 +++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 1c878c9..82e80bd 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "3.2.0", "description": "GitHub Action that helps you publish your Minecraft mods", "main": "src/index.ts", + "type": "module", "scripts": { "build": "ncc build --source-map --license license.txt && ncc run scripts/index.ts", "test:lint": "eslint src/**/*.ts && eslint test/**/*.ts", diff --git a/tsconfig.json b/tsconfig.json index 7d8a594..1869261 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,11 +2,16 @@ "include": ["./src/**/*"], "exclude": ["node_modules", "./test/**/*"], "compilerOptions": { - "target": "ES6", - "esModuleInterop": true, + "target": "ESNext", + "module": "ESNext", "moduleResolution": "node", + "esModuleInterop": true, + "baseUrl": "./src", "outDir": "./dist", - "resolveJsonModule": true, + + "paths": { + "@/*": ["./*"], + } }, -} \ No newline at end of file +}