mirror of
https://github.com/jbranchaud/til
synced 2026-01-05 16:18:01 +00:00
Compare commits
3 Commits
43ea08184a
...
9e13593d22
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9e13593d22 | ||
|
|
02a56c7971 | ||
|
|
4dcaa95fae |
@@ -10,7 +10,7 @@ pairing with smart people at Hashrocket.
|
||||
|
||||
For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186).
|
||||
|
||||
_1257 TILs and counting..._
|
||||
_1258 TILs and counting..._
|
||||
|
||||
---
|
||||
|
||||
@@ -539,7 +539,9 @@ _1257 TILs and counting..._
|
||||
|
||||
### Neovim
|
||||
|
||||
- [Allow Neovim To Copy/Paste With System Clipboard](neovim/allow-neovim-to-copy-paste-with-system-clipboard.md)
|
||||
- [Create User Command To Open Init Config](neovim/create-user-command-to-open-init-config.md)
|
||||
- [Set Up Vim-Plug With Neovim](neovim/set-up-vim-plug-with-neovim.md)
|
||||
|
||||
### Netlify
|
||||
|
||||
@@ -1284,6 +1286,7 @@ _1257 TILs and counting..._
|
||||
- [Add Web Server Layer Redirects](vercel/add-web-server-layer-redirects.md)
|
||||
- [Deploy An App Without Pushing An Empty Commit](vercel/deploy-an-app-without-pushing-an-empty-commit.md)
|
||||
- [Naming Of The Vercel Config File](vercel/naming-of-the-vercel-config-file.md)
|
||||
- [Pin Specific pnpm Version For Builds](vercel/pin-specific-pnpm-version-for-builds.md)
|
||||
- [Share Development Environment Variables Via CLI](vercel/share-development-environment-variables-via-cli.md)
|
||||
|
||||
### Vim
|
||||
@@ -1293,7 +1296,6 @@ _1257 TILs and counting..._
|
||||
- [Add A File Without Loading It](vim/add-a-file-without-loading-it.md)
|
||||
- [Add Custom Dictionary Words](vim/add-custom-dictionary-words.md)
|
||||
- [All The Ways To Write And Quit In Vim](vim/all-the-ways-to-write-and-quit-in-vim.md)
|
||||
- [Allow Neovim To Copy/Paste With System Clipboard](vim/allow-neovim-to-copy-paste-with-system-clipboard.md)
|
||||
- [Almost The End Of The Line](vim/almost-the-end-of-the-line.md)
|
||||
- [Alternate Files With vim-rails](vim/alternate-files-with-vim-rails.md)
|
||||
- [Always Keep The Gutter Open](vim/always-keep-the-gutter-open.md)
|
||||
@@ -1414,7 +1416,6 @@ _1257 TILs and counting..._
|
||||
- [Select Several Results From An FZF Search](vim/select-several-results-from-an-fzf-search.md)
|
||||
- [Set End Of Line Markers](vim/set-end-of-line-markers.md)
|
||||
- [Set Your Color Scheme](vim/set-your-color-scheme.md)
|
||||
- [Set Up Vim-Plug With Neovim](vim/set-up-vim-plug-with-neovim.md)
|
||||
- [Setting Filetype With Modelines](vim/setting-filetype-with-modelines.md)
|
||||
- [Show All Syntax Highlighting Rules](vim/show-all-syntax-highlighting-rules.md)
|
||||
- [Show Matching Entries For Help](vim/show-matching-entries-for-help.md)
|
||||
|
||||
35
vercel/pin-specific-pnpm-version-for-builds.md
Normal file
35
vercel/pin-specific-pnpm-version-for-builds.md
Normal file
@@ -0,0 +1,35 @@
|
||||
# Pin Specific pnpm Version For Builds
|
||||
|
||||
Vercel recognizes when [a project contain a `pnpm-lock.yaml`
|
||||
file](https://vercel.com/changelog/projects-using-pnpm-can-now-be-deployed-with-zero-configuration)
|
||||
and will automatically use [`pnpm`](https://pnpm.io/) for builds of that
|
||||
project.
|
||||
|
||||
It looks for [the `lockfileVersion` in `pnpm-lock.yaml` to determine what major
|
||||
version of `pnpm` to
|
||||
install](https://vercel.com/docs/concepts/deployments/configure-a-build#install-command).
|
||||
If the `lockfileVersion` is `5.4`, then it will use the latest pnpm v7.
|
||||
Otherwise it will fallback to the latest pnpm v6.
|
||||
|
||||
That's the extent of the control you have over the `pnpm` version. That is,
|
||||
unless you are to use [this experimental corepack
|
||||
feature](https://vercel.com/docs/concepts/deployments/configure-a-build#corepack).
|
||||
Set the `ENABLE_EXPERIMENTAL_COREPACK` environment variable to `1` in your
|
||||
project's _Environment Variables_ under _Settings_.
|
||||
|
||||
Then specify the `pnpm` version with the `packageManager` key in your
|
||||
`package.json`.
|
||||
|
||||
```json
|
||||
{
|
||||
"packageManager": "pnpm@7.13.2"
|
||||
}
|
||||
```
|
||||
|
||||
Even though the current latest is `7.13.5`, Vercel will see the Corepack
|
||||
environment variables and the `packageManager` version and use `7.13.2`
|
||||
instead.
|
||||
|
||||
See [this PR](https://github.com/skillrecordings/products/pull/535) and [this
|
||||
issue](https://github.com/prisma/prisma/issues/12921#issuecomment-1284425847)
|
||||
for more details.
|
||||
Reference in New Issue
Block a user