Skip to content

Commit 87ad252

Browse files
authored
Refactor onCreateCommand in devcontainer.json
1 parent e9128fb commit 87ad252

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,7 @@
5959
},
6060

6161
// Lifecycle commands
62-
"onCreateCommand": [
63-
"npm config set \"//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN\"",
64-
"npm config set \"@github:registry=https://npm.pkg.github.com/\"",
65-
"npm install -g @github/copilot",
66-
"npm ci"
67-
],
62+
"onCreateCommand": "npm ci",
6863
"postStartCommand": "nohup bash -c 'npm start &'",
6964
// Set the port to be public
7065
"postAttachCommand": "gh cs ports visibility 4000:public -c \"$CODESPACE_NAME\"",

0 commit comments

Comments
 (0)