From 3c2fbfef097935d94ff9cf5eeb80a866136771f0 Mon Sep 17 00:00:00 2001 From: Scott Brenner Date: Mon, 19 Aug 2024 23:49:02 +0000 Subject: [PATCH] FIX: Husky v10 prep --- .husky/pre-commit | 3 --- dist/index.js | 2 +- package.json | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index d8034aa..feacb38 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,2 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npx lint-staged npm run all diff --git a/dist/index.js b/dist/index.js index c7e308f..ab2fde9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -81,7 +81,7 @@ module.exports = { const defaultPython = isWindows() ? "python" : "python3"; try { - const version = getInput("version", /^[\d.*]+$/, "1.*"); + const version = getInput("version", /^[\d.*]+$/, "0.*"); const command = getInput("command", /^cfn-lint\s || null/, null); const python = getInput("python", /^.+$/, defaultPython); return { version, command, python }; diff --git a/package.json b/package.json index a8b9d87..dfa29f6 100644 --- a/package.json +++ b/package.json @@ -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": {