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

FIX: Husky v10 prep #430

Merged
merged 2 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
npm run all
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ module.exports = {
const defaultPython = isWindows() ? "python" : "python3";

try {
const version = getInput("version", /^[\d.*]+$/, "1.*");
const version = getInput("version", /^[\d.*]+$/, "0.*");
ScottBrenner marked this conversation as resolved.
Show resolved Hide resolved
const command = getInput("command", /^cfn-lint\s || null/, null);
const python = getInput("python", /^.+$/, defaultPython);
return { version, command, python };
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build": "ncc build index.js --out dist --license licenses.txt",
"format": "prettier --write .",
"all": "npm run format && npm test && npm run build",
"prepare": "husky install"
"prepare": "husky"
},
"license": "MIT License",
"dependencies": {
Expand Down
Loading