Skip to content

Commit

Permalink
chore: specify pnpm v8 as package manager (#2104)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cexbrayat committed Jun 22, 2023
1 parent 891bce0 commit 1ce8c08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions netlify.toml
@@ -1,3 +1,6 @@
[[redirects]]
from="/v2"
to="/"

[build]
command = "pnpm docs:build"
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -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": [
Expand All @@ -124,4 +125,4 @@
]
}
}
}
}

0 comments on commit 1ce8c08

Please sign in to comment.