Skip to content

Commit

Permalink
[package] Modify build script and add precommit script
Browse files Browse the repository at this point in the history
  • Loading branch information
homoluctus committed Nov 12, 2019
1 parent 0dff1ba commit f4fc4a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Container template action using actions/toolkit",
"main": "lib/main.js",
"scripts": {
"build": "tsc",
"build": "ncc build src/index.ts",
"precommit": "npm run build && git add dist/",
"format": "prettier --write **/*.ts",
"test": "jest"
},
Expand Down Expand Up @@ -35,6 +36,7 @@
"devDependencies": {
"@types/jest": "^24.0.13",
"@types/node": "^12.0.4",
"@zeit/ncc": "^0.20.5",
"jest": "^24.8.0",
"jest-circus": "^24.7.1",
"prettier": "^1.17.1",
Expand Down

0 comments on commit f4fc4a1

Please sign in to comment.