Skip to content

Instantly share code, notes, and snippets.

@PatrickChoDev
Created November 10, 2023 18:26
Show Gist options
  • Select an option

  • Save PatrickChoDev/81d36159aca4dc687b8c89983e64da2e to your computer and use it in GitHub Desktop.

Select an option

Save PatrickChoDev/81d36159aca4dc687b8c89983e64da2e to your computer and use it in GitHub Desktop.
PNPM devcontainer multiple project setup
{
"name": "Multiple PNPM projects",
// recommend using microsoft default image
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye",
// !!!! MAGIC STARTS HERE!!!
"mounts": [
"source=global-pnpm-store,target=${containerWorkspaceFolder}/.pnpm-store,type=volume"
],
"postCreateCommand": "sudo chown node .pnpm-store"
....
}
@LuckedCoronet
Copy link

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment