Remove husky tool + fix lint error (#394)

* remove husky

* fix tests
This commit is contained in:
Austin Valle 2024-01-31 14:11:44 -05:00 committed by GitHub
parent e12a01440e
commit 2417443146
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 2 additions and 26 deletions

2
dist/index1.js vendored
View file

@ -27222,7 +27222,7 @@ async function checkTerraform () {
const options = { const options = {
listeners, listeners,
ignoreReturnCode: true, ignoreReturnCode: true,
silent: true, // avoid printing command in stdout: https://github.com/actions/toolkit/issues/649 silent: true // avoid printing command in stdout: https://github.com/actions/toolkit/issues/649
}; };
const exitCode = await exec(pathToCLI, args, options); const exitCode = await exec(pathToCLI, args, options);

22
package-lock.json generated
View file

@ -18,7 +18,6 @@
}, },
"devDependencies": { "devDependencies": {
"@vercel/ncc": "^0.38.1", "@vercel/ncc": "^0.38.1",
"husky": "^8.0.3",
"jest": "^29.7.0", "jest": "^29.7.0",
"nock": "^13.5.1", "nock": "^13.5.1",
"semistandard": "^17.0.0" "semistandard": "^17.0.0"
@ -3658,21 +3657,6 @@
"node": ">=10.17.0" "node": ">=10.17.0"
} }
}, },
"node_modules/husky": {
"version": "8.0.3",
"resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz",
"integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==",
"dev": true,
"bin": {
"husky": "lib/bin.js"
},
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/sponsors/typicode"
}
},
"node_modules/ignore": { "node_modules/ignore": {
"version": "5.2.4", "version": "5.2.4",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz",
@ -9491,12 +9475,6 @@
"integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",
"dev": true "dev": true
}, },
"husky": {
"version": "8.0.3",
"resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz",
"integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==",
"dev": true
},
"ignore": { "ignore": {
"version": "5.2.4", "version": "5.2.4",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz",

View file

@ -13,7 +13,6 @@
"test": "semistandard --env jest && jest --coverage", "test": "semistandard --env jest && jest --coverage",
"lint": "semistandard --env jest --fix", "lint": "semistandard --env jest --fix",
"build": "ncc build wrapper/terraform.js --out wrapper/dist && ncc build index.js --out dist", "build": "ncc build wrapper/terraform.js --out wrapper/dist && ncc build index.js --out dist",
"prepare": "husky install",
"format-check": "echo \"unimplemented for actions/reusable-workflows basic-validation\"" "format-check": "echo \"unimplemented for actions/reusable-workflows basic-validation\""
}, },
"keywords": [], "keywords": [],
@ -28,7 +27,6 @@
}, },
"devDependencies": { "devDependencies": {
"@vercel/ncc": "^0.38.1", "@vercel/ncc": "^0.38.1",
"husky": "^8.0.3",
"jest": "^29.7.0", "jest": "^29.7.0",
"nock": "^13.5.1", "nock": "^13.5.1",
"semistandard": "^17.0.0" "semistandard": "^17.0.0"

View file

@ -34,7 +34,7 @@ async function checkTerraform () {
const options = { const options = {
listeners, listeners,
ignoreReturnCode: true, ignoreReturnCode: true,
silent: true, // avoid printing command in stdout: https://github.com/actions/toolkit/issues/649 silent: true // avoid printing command in stdout: https://github.com/actions/toolkit/issues/649
}; };
const exitCode = await exec(pathToCLI, args, options); const exitCode = await exec(pathToCLI, args, options);