diff --git a/package-lock.json b/package-lock.json index 4aa50ca..c177114 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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 + } + } } diff --git a/package.json b/package.json index f918158..ba1977f 100644 --- a/package.json +++ b/package.json @@ -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": {} } diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..1a6fbe4 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,11 @@ +{ + "include": ["./src/**/*"], + "exclude": ["node_modules", "./test/**/*"], + "compilerOptions": { + "target": "ES6", + "esModuleInterop": true, + "moduleResolution": "node", + "baseUrl": "./src", + "outDir": "./dist", + }, +} \ No newline at end of file