Skip to content

Commit

Permalink
add husky config
Browse files Browse the repository at this point in the history
  • Loading branch information
jetersen committed Jan 13, 2022
1 parent 5235470 commit 2fc9974
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 48 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
84 changes: 42 additions & 42 deletions dist/index.js
Expand Up @@ -78499,7 +78499,7 @@ module.exports = VerifyStream;
const path = __nccwpck_require__(71017);
const fs = __nccwpck_require__(18962);
const stripBom = __nccwpck_require__(88551);
const parseJson = __nccwpck_require__(81680);
const parseJson = __nccwpck_require__(86615);
const pify = __nccwpck_require__(64810);

const parse = (data, filePath, options = {}) => {
Expand Down Expand Up @@ -79293,47 +79293,6 @@ function patch (fs) {
}


/***/ }),

/***/ 81680:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {

"use strict";

const errorEx = __nccwpck_require__(23505);
const fallback = __nccwpck_require__(55586);

const JSONError = errorEx('JSONError', {
fileName: errorEx.append('in %s')
});

module.exports = (input, reviver, filename) => {
if (typeof reviver === 'string') {
filename = reviver;
reviver = null;
}

try {
try {
return JSON.parse(input, reviver);
} catch (err) {
fallback(input, reviver);

throw err;
}
} catch (err) {
err.message = err.message.replace(/\n/g, '');

const jsonErr = new JSONError(err);
if (filename) {
jsonErr.fileName = filename;
}

throw jsonErr;
}
};


/***/ }),

/***/ 11289:
Expand Down Expand Up @@ -102807,6 +102766,47 @@ module.exports = pTry;
module.exports["default"] = pTry;


/***/ }),

/***/ 86615:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {

"use strict";

const errorEx = __nccwpck_require__(23505);
const fallback = __nccwpck_require__(55586);

const JSONError = errorEx('JSONError', {
fileName: errorEx.append('in %s')
});

module.exports = (input, reviver, filename) => {
if (typeof reviver === 'string') {
filename = reviver;
reviver = null;
}

try {
try {
return JSON.parse(input, reviver);
} catch (err) {
fallback(input, reviver);

throw err;
}
} catch (err) {
err.message = err.message.replace(/\n/g, '');

const jsonErr = new JSONError(err);
if (filename) {
jsonErr.fileName = filename;
}

throw jsonErr;
}
};


/***/ }),

/***/ 89808:
Expand Down
8 changes: 2 additions & 6 deletions package.json
Expand Up @@ -18,7 +18,8 @@
"prettier": "prettier --write **/*.{js,md,json,yml,yaml}",
"postversion": "npm run test && git push && git push --tags && npm publish && npm run deploy && npm run open-releases",
"open-releases": "open \"$(node -e 'console.log(`${require(\"./package.json\").repository}/releases`)')\"",
"deploy": "git push -f heroku \"$(node -e 'console.log(`v${require(\"./package.json\").version}`)')\":master"
"deploy": "git push -f heroku \"$(node -e 'console.log(`v${require(\"./package.json\").version}`)')\":master",
"prepare": "husky install"
},
"dependencies": {
"@actions/core": "1.6.0",
Expand Down Expand Up @@ -65,11 +66,6 @@
"lib/**"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"eslint --fix"
Expand Down

0 comments on commit 2fc9974

Please sign in to comment.