Skip to content

Commit

Permalink
fix: compatibility issues with pre-commit hook (#38)
Browse files Browse the repository at this point in the history
* fix: compatibility issues with pre-commit hook
* chore: pin dependency
  • Loading branch information
buuhuu authored Aug 28, 2024
1 parent 986b77f commit 56c0808
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
7 changes: 3 additions & 4 deletions .husky/pre-commit.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import { exec } from "node:child_process";

const run = (cmd) => new Promise((resolve, reject) => exec(
cmd,
(error, stdout, stderr) => {
if (error) reject();
if (stderr) reject(stderr);
resolve(stdout);
(error, stdout) => {
if (error) reject(error);
else resolve(stdout);
}
));

Expand Down
20 changes: 15 additions & 5 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"eslint-plugin-json": "3.1.0",
"eslint-plugin-xwalk": "github:adobe-rnd/eslint-plugin-xwalk#v0.1.0",
"husky": "9.1.1",
"merge-json-cli": "1.0.3",
"merge-json-cli": "1.0.4",
"npm-run-all": "4.1.5",
"stylelint": "16.6.1",
"stylelint-config-standard": "36.0.0"
Expand Down

0 comments on commit 56c0808

Please sign in to comment.