From 1ce8c08a479e2c775d226faf4d8e0178486ccdf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Exbrayat?= Date: Thu, 22 Jun 2023 12:10:01 +0200 Subject: [PATCH] chore: specify pnpm v8 as package manager (#2104) This is especially useful for netlify which rely on corepack to use the proper pnpm version. Corepack uses the `packageManager` field in the pakage.json file to determine which version is used. We also need to use pnpm to build the docs on netlify, otherwise the deploy fails --- netlify.toml | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 4a74c5f62..d03c1b35c 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,6 @@ [[redirects]] from="/v2" to="/" + +[build] + command = "pnpm docs:build" diff --git a/package.json b/package.json index 6a2104673..5b14cde61 100644 --- a/package.json +++ b/package.json @@ -114,6 +114,7 @@ "url": "git+https://github.com/vuejs/test-utils.git" }, "homepage": "https://github.com/vuejs/test-utils", + "packageManager": "pnpm@8.6.3", "pnpm": { "peerDependencyRules": { "ignoreMissing": [ @@ -124,4 +125,4 @@ ] } } -} +} \ No newline at end of file