Created
November 10, 2023 18:26
-
-
Save PatrickChoDev/81d36159aca4dc687b8c89983e64da2e to your computer and use it in GitHub Desktop.
PNPM devcontainer multiple project setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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" | |
| .... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you so much!