Pre-install pnpm alongside yarn in base image (#357)
* Pre-install pnpm alongside yarn in base image Install pnpm globally in the Node.js provisioner so base images include both common package managers. Assisted-by: Cursor Agent Co-authored-by: Jiawen Geng <technicalcute@gmail.com> * Install yarn and pnpm in a single npm command Assisted-by: Cursor Agent Co-authored-by: Jiawen Geng <technicalcute@gmail.com> * Configure PNPM_HOME in the base image shell profile Assisted-by: Cursor Agent Co-authored-by: Jiawen Geng <technicalcute@gmail.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
This commit is contained in:
parent
16e9ad7d00
commit
f03344599b
|
|
@ -121,8 +121,12 @@ build {
|
|||
"echo 'export PATH=\"/opt/homebrew/opt/node@24/bin:$PATH\"' >> ~/.zprofile",
|
||||
"source ~/.zprofile",
|
||||
"node --version",
|
||||
"npm install --global yarn",
|
||||
"npm install --global yarn pnpm",
|
||||
"echo 'export PNPM_HOME=\"$HOME/Library/pnpm\"' >> ~/.zprofile",
|
||||
"echo 'export PATH=\"$PNPM_HOME:$PATH\"' >> ~/.zprofile",
|
||||
"source ~/.zprofile",
|
||||
"yarn --version",
|
||||
"pnpm --version",
|
||||
]
|
||||
}
|
||||
provisioner "shell" {
|
||||
|
|
|
|||
Loading…
Reference in New Issue