Skip to content

Commit

Permalink
chore: update husky and pre-commit workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
weilinzung committed Dec 14, 2024
1 parent 7a831e3 commit 3cd6d99
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 132 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm test && npm run lint-staged
1 change: 0 additions & 1 deletion bin/action.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -92976,7 +92976,6 @@ async function execWithCredentials(args, projectId, gacFilename, opts) {
}
return deployOutputBuf.length ? deployOutputBuf[deployOutputBuf.length - 1].toString("utf-8") : ""; // output from the CLI
}

async function deployPreview(gacFilename, deployConfig) {
const {
projectId,
Expand Down
225 changes: 103 additions & 122 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 6 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,24 @@
"@types/jest": "^29.5.1",
"@types/tmp": "^0.2.3",
"babel-jest": "^29.5.0",
"husky": "^9.0.11",
"husky": "^9.1.7",
"jest": "^29.5.0",
"microbundle": "^0.15.1",
"prettier": "^2.8.7",
"pretty-quick": "^3.3.1",
"prettier": "^3.4.1",
"pretty-quick": "^4.0.0",
"tmp": "^0.2.1",
"ts-jest": "^29.1.3",
"ts-node": "^10.9.1",
"typescript": "^5.0.4"
},
"scripts": {
"prepare": "husky",
"format:check": "prettier . --list-different",
"format": "prettier --write .",
"build": "microbundle --format cjs --target node --no-compress --no-sourcemap src/index.ts",
"build:watch": "microbundle watch --format cjs --target node --no-compress --no-sourcemap src/index.ts",
"test": "jest"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged && npm run build"
}
"test": "jest",
"lint-staged": "pretty-quick --staged && npm run build && git add bin/action.min.js"
},
"version": "0.8.0"
}

0 comments on commit 3cd6d99

Please sign in to comment.