Skip to content

Commit 89fa3be

Browse files
committed
chore: store computed files across development container rebuilds
1 parent 3ef9457 commit 89fa3be

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,21 @@
55
"ghcr.io/devcontainers/features/github-cli": {},
66
"ghcr.io/devcontainers/features/powershell": {}
77
},
8+
// "containerUser": "root",
9+
// "remoteUser": "root",
10+
"postCreateCommand": {
11+
// "chown": "sudo chown root node_modules",
12+
// "yarn": "yarn install --non-interactive --frozen-lockfile"
13+
},
14+
"mounts": [
15+
{
16+
"source": "router-component-store_node_modules",
17+
"target": "${containerWorkspaceFolder}/node_modules",
18+
"type": "volume"
19+
}
20+
],
821
"waitFor": "onCreateCommand",
9-
"updateContentCommand": "yarn install --non-interactive --frozen-lockfile",
22+
"updateContentCommand": "",
1023
"postAttachCommand": {
1124
// "developmentServer": "yarn start"
1225
},

0 commit comments

Comments
 (0)