Skip to content

Commit 6aea1ce

Browse files
authored
✨ Update devcontainer configuration with specific Node.js version and enhanced post-create command
1 parent c30df9a commit 6aea1ce

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{
22
"name": "ar10dev.github.io",
3-
"image": "mcr.microsoft.com/devcontainers/javascript-node",
4-
"features": {
5-
"ghcr.io/devcontainers/features/bun": {}
6-
},
7-
"postCreateCommand": "bun install",
3+
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm",
4+
"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'",
85
"customizations": {
96
"vscode": {
107
"extensions": [

0 commit comments

Comments
 (0)