Skip to content

Commit 590afc4

Browse files
authored
✨ Add remote environment variables for Bun installation in devcontainer configuration
1 parent 1ece4e0 commit 590afc4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"name": "ar10dev.github.io",
33
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm",
4+
"remoteEnv": {
5+
"BUN_INSTALL": "/home/node/.bun",
6+
"PATH": "/home/node/.bun/bin:${containerEnv:PATH}"
7+
},
48
"postCreateCommand": "bash -lc 'set -e; export BUN_INSTALL=\"$HOME/.bun\"; curl -fsSL https://bun.sh/install | bash; \"$BUN_INSTALL/bin/bun\" --version; \"$BUN_INSTALL/bin/bun\" install; grep -q \"BUN_INSTALL=\\\"$HOME/.bun\\\"\" ~/.bashrc || printf \"\\nexport BUN_INSTALL=\\\"$HOME/.bun\\\"\\nexport PATH=\\\"$BUN_INSTALL/bin:$PATH\\\"\\n\" >> ~/.bashrc; grep -q \"BUN_INSTALL=\\\"$HOME/.bun\\\"\" ~/.zshrc || printf \"\\nexport BUN_INSTALL=\\\"$HOME/.bun\\\"\\nexport PATH=\\\"$BUN_INSTALL/bin:$PATH\\\"\\n\" >> ~/.zshrc'",
59
"customizations": {
610
"vscode": {

0 commit comments

Comments
 (0)