mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-12-04 19:24:46 +01:00
Updated the project to utilize ESM
This commit is contained in:
parent
9ad1412834
commit
e62b237642
2 changed files with 10 additions and 4 deletions
|
@ -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",
|
||||
|
|
|
@ -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": {
|
||||
"@/*": ["./*"],
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue