diff options
| author | ふるふる <git@fluoride.dev> | 2024-05-13 11:19:19 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-13 11:19:19 +0900 |
| commit | 12ae9a2b23436732ef453c6bca5f22bbca229d2e (patch) | |
| tree | 830913cf4f1d69d4bfc5a177ad1bd0e7ca62dd55 | |
| parent | fix(backend): UserEntityService.getRelationsの取得処理を軽量化 (#13811) (diff) | |
| download | sharkey-12ae9a2b23436732ef453c6bca5f22bbca229d2e.tar.gz sharkey-12ae9a2b23436732ef453c6bca5f22bbca229d2e.tar.bz2 sharkey-12ae9a2b23436732ef453c6bca5f22bbca229d2e.zip | |
feat: DevContainerにpnpmをインストールする際、corepackを使うようにする (#13821)
| -rw-r--r-- | .devcontainer/devcontainer.json | 6 | ||||
| -rwxr-xr-x | .devcontainer/init.sh | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 182ee2fbb2..31b6212cb5 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -4,12 +4,10 @@ "service": "app", "workspaceFolder": "/workspace", "features": { - "ghcr.io/devcontainers-contrib/features/pnpm:2": { - "version": "8.9.2" - }, "ghcr.io/devcontainers/features/node:1": { "version": "20.12.2" - } + }, + "ghcr.io/devcontainers-contrib/features/corepack:1": {} }, "forwardPorts": [3000], "postCreateCommand": "sudo chmod 755 .devcontainer/init.sh && .devcontainer/init.sh", diff --git a/.devcontainer/init.sh b/.devcontainer/init.sh index bcad3e6d85..729e1a9d2d 100755 --- a/.devcontainer/init.sh +++ b/.devcontainer/init.sh @@ -4,6 +4,8 @@ set -xe sudo chown -R node /workspace git submodule update --init +corepack install +corepack enable pnpm config set store-dir /home/node/.local/share/pnpm/store pnpm install --frozen-lockfile cp .devcontainer/devcontainer.yml .config/default.yml |