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 +}