website: update dependencies (#20387)

* Update nvmrc to use v18, next to v14 and npm to v9.6.7

* Update husky pre-commit hook to v9; updated Husky to v9; updated node version in website readme

* Updated @hashicorp/platform-cli
This commit is contained in:
Heat Hamilton 2024-01-29 17:50:06 -05:00 committed by GitHub
parent 7c6a3c83f2
commit 9f90060b0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 277 additions and 398 deletions

View File

@ -0,0 +1 @@
next-hashicorp precommit

View File

@ -1 +1 @@
v14 v18

View File

@ -62,7 +62,7 @@ The docker image is pre-built with all the website dependencies installed, which
### With Node ### With Node
If your local development environment has a supported version (v10.0.0+) of [node installed](https://nodejs.org/en/) you can run: If your local development environment has a supported version (v18.17.0+) of [node installed](https://nodejs.org/en/) you can run:
- `npm install` - `npm install`
- `npm start` - `npm start`

File diff suppressed because it is too large Load Diff

View File

@ -4,22 +4,18 @@
"version": "0.0.1", "version": "0.0.1",
"author": "HashiCorp", "author": "HashiCorp",
"devDependencies": { "devDependencies": {
"@hashicorp/platform-cli": "^2.6.0", "@hashicorp/platform-cli": "^2.7.3",
"@hashicorp/platform-content-conformance": "^0.0.10", "@hashicorp/platform-content-conformance": "^0.0.12",
"dart-linkcheck": "2.0.15", "dart-linkcheck": "^2.0.15",
"husky": "4.3.8", "husky": "^9.0.6",
"next": "^12.3.1", "next": "^12.3.1",
"prettier": "2.2.1" "prettier": "^3.2.4"
},
"husky": {
"hooks": {
"pre-commit": "next-hashicorp precommit"
}
}, },
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"build": "./scripts/website-build.sh", "build": "./scripts/website-build.sh",
"format": "next-hashicorp format", "format": "next-hashicorp format",
"prepare": "husky",
"generate:component": "next-hashicorp generate component", "generate:component": "next-hashicorp generate component",
"generate:readme": "next-hashicorp markdown-blocks README.md", "generate:readme": "next-hashicorp markdown-blocks README.md",
"lint": "next-hashicorp lint", "lint": "next-hashicorp lint",
@ -28,6 +24,6 @@
"content-check": "hc-content --config base-docs" "content-check": "hc-content --config base-docs"
}, },
"engines": { "engines": {
"npm": ">=7.0.0" "npm": ">=9.6.7"
} }
} }