Skip to content

Commit d8b9301

Browse files
authored
fix: install latest corepack globally (#1286)
* fix: install latest corepack globally * fix: update corepack installation to use the latest version
1 parent acb8f2c commit d8b9301

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"otherPortsAttributes": {
66
"onAutoForward": "silent"
77
},
8-
"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",
8+
"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",
99
"waitFor": "postCreateCommand",
1010
"mounts": [
1111
"source=${localWorkspaceFolderBasename}-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume",

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN apk upgrade --no-cache --available && \
1313
cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime && \
1414
echo "Asia/Tokyo" > /etc/timezone && \
1515
apk del tzdata && \
16-
npm install -g corepack && \
16+
npm install -g corepack@latest && \
1717
corepack enable
1818

1919
WORKDIR /app

0 commit comments

Comments
 (0)