Skip to content

Commit 2da7056

Browse files
committed
Fix nodeModules scope to avoid polluting TL namespace
Ref: #1711 Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
1 parent 85b044e commit 2da7056

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

pkg/universe.dagger.io/examples/todoapp/netlify.cue

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,15 @@ import (
88
"universe.dagger.io/netlify"
99
)
1010

11-
nodeModulesMount: "/src/node_modules": dagger.#Mount & {
12-
dest: "/src/node_modules"
13-
type: "cache"
14-
contents: dagger.#CacheDir & {
15-
id: "todoapp-modules-cache"
16-
}
17-
18-
}
19-
2011
dagger.#Plan & {
12+
_nodeModulesMount: "/src/node_modules": dagger.#Mount & {
13+
dest: "/src/node_modules"
14+
type: "cache"
15+
contents: dagger.#CacheDir & {
16+
id: "todoapp-modules-cache"
17+
}
18+
19+
}
2120
client: {
2221
filesystem: {
2322
".": read: {
@@ -63,7 +62,7 @@ dagger.#Plan & {
6362
id: "todoapp-yarn-cache"
6463
}
6564
}
66-
nodeModulesMount
65+
_nodeModulesMount
6766
}
6867
script: contents: #"""
6968
yarn config set cache-folder /cache/yarn
@@ -76,7 +75,7 @@ dagger.#Plan & {
7675
test: bash.#Run & {
7776
input: deps.output
7877
workdir: "/src"
79-
mounts: nodeModulesMount
78+
mounts: _nodeModulesMount
8079
script: contents: #"""
8180
yarn run test
8281
"""#
@@ -85,7 +84,7 @@ dagger.#Plan & {
8584
build: {
8685
run: bash.#Run & {
8786
input: test.output
88-
mounts: nodeModulesMount
87+
mounts: _nodeModulesMount
8988
workdir: "/src"
9089
script: contents: #"""
9190
yarn run build

0 commit comments

Comments
 (0)