deps: update deps (#5411)

* deps: update deps

* chore: update husky from v2 format to v6 (really it's v4)

* move devDependencies below dependencies

* use package-lock.json (lockfile) format v2 (npm 7)

We are in the linter, see
b070d41be2/package-lock.json (L4)
manned-org
bl-ue 2021-04-07 10:16:21 -04:00 committed by GitHub
parent a99a8d98d8
commit 72a714b700
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 388 additions and 607 deletions

1
.husky/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
_

4
.husky/pre-commit Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm test

973
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,25 +1,24 @@
{
"name": "tldr-pages",
"description": "Simplified and community-driven man pages",
"author": "Romain Prieto",
"license": "SEE LICENSE IN LICENSE.md",
"repository": "tldr-pages/tldr",
"homepage": "https://tldr.sh/",
"dependencies": {
"glob": "7.1.3",
"husky": "^2.2.0",
"markdownlint-cli": "0.19.0",
"glob": "7.1.6",
"markdownlint-cli": "0.27.1",
"tldr-lint": "~0.0.10"
},
"devDependencies": {
"husky": "^6.0.0"
},
"scripts": {
"lint-markdown": "markdownlint pages*/**/*.md",
"lint-tldr-pages": "tldr-lint ./pages",
"test": "bash scripts/test.sh",
"build-index": "node ./scripts/build-index.js > index.json"
},
"husky": {
"hooks": {
"pre-commit": "npm test"
}
"build-index": "node ./scripts/build-index.js > index.json",
"postinstall": "husky install"
},
"private": true
}