Files
pnpm/.devcontainer/devcontainer.json
Copilot af4cba7e4a chore: add .devcontainer for GitHub Codespaces (#11015)
* Initial plan

* chore: add .devcontainer for GitHub Codespaces support

Co-authored-by: KSXGitHub <11488886+KSXGitHub@users.noreply.github.com>

* docs: remove comments

* fix: chown pnpm home to node user in onCreateCommand to fix EACCES on volume mount

Co-authored-by: KSXGitHub <11488886+KSXGitHub@users.noreply.github.com>

* fix: consolidate devcontainer setup into updateContentCommand

Co-authored-by: KSXGitHub <11488886+KSXGitHub@users.noreply.github.com>

* fix: replace corepack with pnpm install script in devcontainer

Co-authored-by: KSXGitHub <11488886+KSXGitHub@users.noreply.github.com>

* chore: remove error-prone `PNPM_VERSION` expression

* fix: add pnpm to PATH via remoteEnv in devcontainer

Co-authored-by: KSXGitHub <11488886+KSXGitHub@users.noreply.github.com>

* fix: removing copilot's bullshit

* chore(git): revert erroneous change

I don't understand why it didn't work

This reverts commit eb01873dbd.

* chore(git): revert erroneous change

I don't understand why it didn't work

This reverts commit 4ebbb6467d.

* chore(git): revert erroneous change

I don't understand why it didn't work

This reverts commit 468848e4da.

* chore(git): revert erroneous change

I don't understand why it didn't work

This reverts commit c4f9e64402.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: KSXGitHub <11488886+KSXGitHub@users.noreply.github.com>
Co-authored-by: Khải <hvksmr1996@gmail.com>
2026-03-18 21:57:53 +01:00

35 lines
1.0 KiB
JSON

{
"name": "pnpm",
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm",
"mounts": [
"source=pnpm-store,target=/home/node/.local/share/pnpm/store,type=volume"
],
"updateContentCommand": "sudo chown -R node:node /home/node/.local/share/pnpm && sudo corepack enable && pnpm install",
"remoteUser": "node",
"customizations": {
"vscode": {
"extensions": [
"dbaeumer.vscode-eslint",
"EditorConfig.EditorConfig",
"streetsidesoftware.code-spell-checker",
"Orta.vscode-jest",
"eamodio.gitlens",
"usernamehw.errorlens",
"yoavbls.pretty-ts-errors",
"christian-kohler.path-intellisense",
"vivaxy.vscode-conventional-commits",
"GitHub.copilot",
"GitHub.copilot-chat",
"GitHub.vscode-pull-request-github"
],
"settings": {
"typescript.tsdk": "node_modules/typescript/lib",
"eslint.useFlatConfig": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
}
}
}
}
}