Skip to content

Commit c96acbb

Browse files
committed
⚡️Change code spaces prebuild to use pnpm
1 parent 6a6f24e commit c96acbb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.devcontainer/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN . /etc/os-release \
2222
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"
2323

2424
# [Optional] Uncomment if you want to install more global node modules
25-
# RUN su node -c "npm install -g <your-package-list-here>"
25+
RUN su node -c "npm install -g pnpm"
2626

2727

2828

.devcontainer/devcontainer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
// Use 'forwardPorts' to make a list of ports inside the container available locally.
2020
"forwardPorts": [4200, 3000, 27017],
2121

22-
"onCreateCommand": ["yarn", "install"],
23-
"postCreateCommand": ["yarn", "start"],
22+
"onCreateCommand": ["yarn", "setup:project"],
23+
"postCreateCommand": ["pnpm", "start"],
2424

2525
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
2626
"remoteUser": "node",

0 commit comments

Comments
 (0)