Skip to content

Commit

Permalink
fix: install latest corepack globally (#1286)
Browse files Browse the repository at this point in the history
* fix: install latest corepack globally

* fix: update corepack installation to use the latest version
  • Loading branch information
book000 authored Feb 8, 2025
1 parent acb8f2c commit d8b9301
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"otherPortsAttributes": {
"onAutoForward": "silent"
},
"postCreateCommand": "sudo npm uninstall -g pnpm yarn && sudo git config --system --add safe.directory ${containerWorkspaceFolder} && sudo chown node node_modules .pnpm-store && sudo corepack enable && corepack install && pnpm install",
"postCreateCommand": "sudo npm uninstall -g pnpm yarn && sudo git config --system --add safe.directory ${containerWorkspaceFolder} && sudo chown node node_modules .pnpm-store && sudo npm install -g corepack@latest && sudo corepack enable && corepack install && pnpm install",
"waitFor": "postCreateCommand",
"mounts": [
"source=${localWorkspaceFolderBasename}-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume",
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN apk upgrade --no-cache --available && \
cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime && \
echo "Asia/Tokyo" > /etc/timezone && \
apk del tzdata && \
npm install -g corepack && \
npm install -g corepack@latest && \
corepack enable

WORKDIR /app
Expand Down

0 comments on commit d8b9301

Please sign in to comment.