mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-24 17:30:59 -05: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",
|
"version": "3.2.0",
|
||||||
"description": "GitHub Action that helps you publish your Minecraft mods",
|
"description": "GitHub Action that helps you publish your Minecraft mods",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "ncc build --source-map --license license.txt && ncc run scripts/index.ts",
|
"build": "ncc build --source-map --license license.txt && ncc run scripts/index.ts",
|
||||||
"test:lint": "eslint src/**/*.ts && eslint test/**/*.ts",
|
"test:lint": "eslint src/**/*.ts && eslint test/**/*.ts",
|
||||||
|
|
|
@ -2,11 +2,16 @@
|
||||||
"include": ["./src/**/*"],
|
"include": ["./src/**/*"],
|
||||||
"exclude": ["node_modules", "./test/**/*"],
|
"exclude": ["node_modules", "./test/**/*"],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "ES6",
|
"target": "ESNext",
|
||||||
"esModuleInterop": true,
|
"module": "ESNext",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
|
"esModuleInterop": true,
|
||||||
|
|
||||||
"baseUrl": "./src",
|
"baseUrl": "./src",
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
"resolveJsonModule": true,
|
|
||||||
|
"paths": {
|
||||||
|
"@/*": ["./*"],
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
Loading…
Reference in a new issue