chore(readme): fix readme file, update husky config

This commit is contained in:
Todd Bluhm 2024-12-01 03:28:33 -09:00
parent 05df88702a
commit a0c8f2fad0
No known key found for this signature in database
GPG Key ID: 9CF312607477B8AB
5 changed files with 9 additions and 7 deletions

View File

@ -6,6 +6,9 @@ jobs:
test:
runs-on: ubuntu-latest
env:
HUSKY: 0
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]

View File

@ -7,6 +7,9 @@ jobs:
runs-on: windows-latest
env:
HUSKY: 0
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]

1
.husky/commit-msg Normal file
View File

@ -0,0 +1 @@
npx commitlint --edit

View File

@ -4,8 +4,7 @@
[![npm](https://badgen.net/npm/v/env-cmd)](https://www.npmjs.com/package/env-cmd)
[![npm](https://badgen.net/npm/dm/env-cmd)](https://www.npmjs.com/package/env-cmd)
[![License](https://badgen.net/github/license/toddbluhm/env-cmd)](https://github.com/toddbluhm/env-cmd/blob/master/LICENSE)
[![TS-Standard - Typescript Standard Style Guide](https://badgen.net/badge/code%20style/ts-standard/blue?icon=typescript)](https://github.com/toddbluhm/ts-standard)
[![Dependabot badge](https://badgen.net/dependabot/toddbluhm/env-cmd?icon=dependabot)](https://dependabot.com/)
[![Typescript-ESLint](https://badgen.net/badge/code%20style/typescript-eslint/blue?icon=typescript)](https://github.com/typescript-eslint/typescript-eslint)
# env-cmd

View File

@ -11,6 +11,7 @@
"env-cmd": "bin/env-cmd.js"
},
"scripts": {
"prepare": "husky",
"test": "mocha -r ts-node/register ./test/**/*.ts",
"test-cover": "nyc npm test",
"coveralls": "coveralls < coverage/lcov.info",
@ -102,11 +103,6 @@
"devDependencyPin": "fix: pin devDependecy ${dependency}"
}
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"