Skip to content

Commit 7b79bfa

Browse files
committed
use ncc compiler for build to leave node_modules in gitignore
1 parent c2b9101 commit 7b79bfa

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ outputs:
3232

3333
runs:
3434
using: 'node20'
35-
main: 'index.js'
35+
main: 'dist/index.js'
3636

3737
branding:
3838
icon: 'calendar'

package-lock.json

Lines changed: 12 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"test": "jest",
88
"lint": "eslint .",
9-
"format": "prettier --write ."
9+
"format": "prettier --write .",
10+
"build": "ncc build index.js -o dist"
1011
},
1112
"keywords": [
1213
"github-action",
@@ -24,6 +25,7 @@
2425
},
2526
"devDependencies": {
2627
"@types/node": "^20.0.0",
28+
"@vercel/ncc": "^0.38.1",
2729
"eslint": "^8.0.0",
2830
"jest": "^29.0.0",
2931
"prettier": "^3.0.0"

0 commit comments

Comments
 (0)