Skip to content

Commit 1ce8c08

Browse files
authored
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
1 parent 891bce0 commit 1ce8c08

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

netlify.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[[redirects]]
22
from="/v2"
33
to="/"
4+
5+
[build]
6+
command = "pnpm docs:build"

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
"url": "git+https://github.com/vuejs/test-utils.git"
115115
},
116116
"homepage": "https://github.com/vuejs/test-utils",
117+
"packageManager": "pnpm@8.6.3",
117118
"pnpm": {
118119
"peerDependencyRules": {
119120
"ignoreMissing": [
@@ -124,4 +125,4 @@
124125
]
125126
}
126127
}
127-
}
128+
}

0 commit comments

Comments
 (0)