Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update husky and pre-commit workflow #402

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
Loading