diff --git a/package-lock.json b/package-lock.json index 3e0c1b6..c4ae100 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,6 +11,9 @@ "dependencies": { "@actions/core": "^1.10.0", "@actions/exec": "^1.1.1" + }, + "devDependencies": { + "@vercel/ncc": "^0.34.0" } }, "node_modules/@actions/core": { @@ -43,6 +46,15 @@ "resolved": "https://registry.npmjs.org/@actions/io/-/io-1.1.2.tgz", "integrity": "sha512-d+RwPlMp+2qmBfeLYPLXuSRykDIFEwdTA0MMxzS9kh4kvP1ftrc/9fzy6pX6qAjthdXruHQ6/6kjT/DNo5ALuw==" }, + "node_modules/@vercel/ncc": { + "version": "0.34.0", + "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.34.0.tgz", + "integrity": "sha512-G9h5ZLBJ/V57Ou9vz5hI8pda/YQX5HQszCs3AmIus3XzsmRn/0Ptic5otD3xVST8QLKk7AMk7AqpsyQGN7MZ9A==", + "dev": true, + "bin": { + "ncc": "dist/ncc/cli.js" + } + }, "node_modules/tunnel": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", @@ -91,6 +103,12 @@ "resolved": "https://registry.npmjs.org/@actions/io/-/io-1.1.2.tgz", "integrity": "sha512-d+RwPlMp+2qmBfeLYPLXuSRykDIFEwdTA0MMxzS9kh4kvP1ftrc/9fzy6pX6qAjthdXruHQ6/6kjT/DNo5ALuw==" }, + "@vercel/ncc": { + "version": "0.34.0", + "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.34.0.tgz", + "integrity": "sha512-G9h5ZLBJ/V57Ou9vz5hI8pda/YQX5HQszCs3AmIus3XzsmRn/0Ptic5otD3xVST8QLKk7AMk7AqpsyQGN7MZ9A==", + "dev": true + }, "tunnel": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", diff --git a/package.json b/package.json index 0e741b8..d80b2ce 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,9 @@ "version": "0.0.1", "description": "GitHub Action for gitmoji-changelog", "main": "index.js", - "scripts": {}, + "scripts": { + "prepare": "ncc build index.js -o dist --source-map --license licenses.txt" + }, "repository": { "type": "git", "url": "git+https://github.com/sercanuste/gitmoji-changelog-action.git" @@ -24,5 +26,8 @@ "dependencies": { "@actions/core": "^1.10.0", "@actions/exec": "^1.1.1" + }, + "devDependencies": { + "@vercel/ncc": "^0.34.0" } }