Просмотр исходного кода

Add preinstall hook for allow-only yarn (#3108)

* Add warning if npm or pnpm is used.

* Rename docs to documentation as link
Jaap Marcus 3 лет назад
Родитель
Сommit
bb6b8938e2
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 1
      docs/.vitepress/config.ts
  2. 1 0
      package.json

+ 1 - 1
docs/.vitepress/config.ts

@@ -54,7 +54,7 @@ export default defineConfig({
 function nav(): DefaultTheme.NavItem[] {
 function nav(): DefaultTheme.NavItem[] {
 	return [
 	return [
 		{ text: "Features", link: "/features.md" },
 		{ text: "Features", link: "/features.md" },
-		{ text: "Docs", link: "/docs/introduction/getting-started.md", activeMatch: "/docs/" },
+		{ text: "Documentation", link: "/docs/introduction/getting-started.md", activeMatch: "/docs/" },
 		{ text: "Team", link: "/team.md" },
 		{ text: "Team", link: "/team.md" },
 		{ text: "Demo", link: "https://demo.hestiacp.com:8083/" },
 		{ text: "Demo", link: "https://demo.hestiacp.com:8083/" },
 		{ text: "Forum", link: "https://forum.hestiacp.com/" },
 		{ text: "Forum", link: "https://forum.hestiacp.com/" },

+ 1 - 0
package.json

@@ -13,6 +13,7 @@
 		"lint": "prettier --check . && eslint web/js/ && stylelint web/css/src/**/*.css && markdownlint *.md docs/**/*.md",
 		"lint": "prettier --check . && eslint web/js/ && stylelint web/css/src/**/*.css && markdownlint *.md docs/**/*.md",
 		"lint-staged": "lint-staged",
 		"lint-staged": "lint-staged",
 		"format": "prettier --write .",
 		"format": "prettier --write .",
+		"preinstall": "npx only-allow yarn",
 		"postinstall": "husky install"
 		"postinstall": "husky install"
 	},
 	},
 	"packageManager": "yarn@3.3.0",
 	"packageManager": "yarn@3.3.0",