mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-12-04 19:24:46 +01:00
Setup TypeScript and ncc
This commit is contained in:
parent
3c8f6d8a1e
commit
56eac44d3d
3 changed files with 39 additions and 2 deletions
23
package-lock.json
generated
23
package-lock.json
generated
|
@ -1,5 +1,26 @@
|
|||
{
|
||||
"name": "mc-publish",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 1
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
"@types/node": {
|
||||
"version": "16.10.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-16.10.1.tgz",
|
||||
"integrity": "sha512-4/Z9DMPKFexZj/Gn3LylFgamNKHm4K3QDi0gz9B26Uk0c8izYf97B5fxfpspMNkWlFupblKM/nV8+NA9Ffvr+w==",
|
||||
"dev": true
|
||||
},
|
||||
"@vercel/ncc": {
|
||||
"version": "0.31.1",
|
||||
"resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.31.1.tgz",
|
||||
"integrity": "sha512-g0FAxwdViI6UzsiVz5HssIHqjcPa1EHL6h+2dcJD893SoCJaGdqqgUF09xnMW6goWnnhbLvgiKlgJWrJa+7qYA==",
|
||||
"dev": true
|
||||
},
|
||||
"typescript": {
|
||||
"version": "4.4.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.3.tgz",
|
||||
"integrity": "sha512-4xfscpisVgqqDfPaJo5vkd+Qd/ItkoagnHpufr+i2QCHBsNYp+G7UAoyFl8aPtx879u38wPV65rZ8qbGZijalA==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
"description": "GitHub Action that helps you publish your Minecraft mods",
|
||||
"main": "src/index.ts",
|
||||
"scripts": {
|
||||
"build": "ncc build --source-map --license license.txt",
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -22,6 +23,10 @@
|
|||
"url": "https://github.com/Kir-Antipov/mc-publish/issues"
|
||||
},
|
||||
"homepage": "https://github.com/Kir-Antipov/mc-publish#readme",
|
||||
"devDependencies": {},
|
||||
"devDependencies": {
|
||||
"@types/node": "^16.10.1",
|
||||
"@vercel/ncc": "^0.31.1",
|
||||
"typescript": "^4.4.3"
|
||||
},
|
||||
"dependencies": {}
|
||||
}
|
||||
|
|
11
tsconfig.json
Normal file
11
tsconfig.json
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"include": ["./src/**/*"],
|
||||
"exclude": ["node_modules", "./test/**/*"],
|
||||
"compilerOptions": {
|
||||
"target": "ES6",
|
||||
"esModuleInterop": true,
|
||||
"moduleResolution": "node",
|
||||
"baseUrl": "./src",
|
||||
"outDir": "./dist",
|
||||
},
|
||||
}
|
Loading…
Reference in a new issue