Skip to content

Commit bb6b893

Browse files
authored
Add preinstall hook for allow-only yarn (hestiacp#3108)
* Add warning if npm or pnpm is used. * Rename docs to documentation as link
1 parent 9d1ed02 commit bb6b893

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/.vitepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default defineConfig({
5454
function nav(): DefaultTheme.NavItem[] {
5555
return [
5656
{ text: "Features", link: "/features.md" },
57-
{ text: "Docs", link: "/docs/introduction/getting-started.md", activeMatch: "/docs/" },
57+
{ text: "Documentation", link: "/docs/introduction/getting-started.md", activeMatch: "/docs/" },
5858
{ text: "Team", link: "/team.md" },
5959
{ text: "Demo", link: "https://demo.hestiacp.com:8083/" },
6060
{ text: "Forum", link: "https://forum.hestiacp.com/" },

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"lint": "prettier --check . && eslint web/js/ && stylelint web/css/src/**/*.css && markdownlint *.md docs/**/*.md",
1414
"lint-staged": "lint-staged",
1515
"format": "prettier --write .",
16+
"preinstall": "npx only-allow yarn",
1617
"postinstall": "husky install"
1718
},
1819
"packageManager": "yarn@3.3.0",

0 commit comments

Comments
 (0)