@@ -26,13 +26,14 @@ public static IResourceBuilder<NodeAppResource> WithNpmPackageInstallation(this
26
26
var installerBuilder = resource . ApplicationBuilder . AddResource ( installer )
27
27
. WithArgs ( [ useCI ? "ci" : "install" ] )
28
28
. WithParentRelationship ( resource . Resource )
29
- . ExcludeFromManifest ( )
30
- . WithAnnotation ( new JavaScriptPackageInstallerAnnotation ( installer ) ) ;
29
+ . ExcludeFromManifest ( ) ;
31
30
32
31
// Make the parent resource wait for the installer to complete
33
32
resource . WaitForCompletion ( installerBuilder ) ;
34
33
35
34
configureInstaller ? . Invoke ( installerBuilder ) ;
35
+
36
+ resource . WithAnnotation ( new JavaScriptPackageInstallerAnnotation ( installer ) ) ;
36
37
}
37
38
38
39
return resource ;
@@ -55,13 +56,14 @@ public static IResourceBuilder<NodeAppResource> WithYarnPackageInstallation(this
55
56
var installerBuilder = resource . ApplicationBuilder . AddResource ( installer )
56
57
. WithArgs ( "install" )
57
58
. WithParentRelationship ( resource . Resource )
58
- . ExcludeFromManifest ( )
59
- . WithAnnotation ( new JavaScriptPackageInstallerAnnotation ( installer ) ) ;
59
+ . ExcludeFromManifest ( ) ;
60
60
61
61
// Make the parent resource wait for the installer to complete
62
62
resource . WaitForCompletion ( installerBuilder ) ;
63
63
64
64
configureInstaller ? . Invoke ( installerBuilder ) ;
65
+
66
+ resource . WithAnnotation ( new JavaScriptPackageInstallerAnnotation ( installer ) ) ;
65
67
}
66
68
67
69
return resource ;
@@ -84,13 +86,14 @@ public static IResourceBuilder<NodeAppResource> WithPnpmPackageInstallation(this
84
86
var installerBuilder = resource . ApplicationBuilder . AddResource ( installer )
85
87
. WithArgs ( "install" )
86
88
. WithParentRelationship ( resource . Resource )
87
- . ExcludeFromManifest ( )
88
- . WithAnnotation ( new JavaScriptPackageInstallerAnnotation ( installer ) ) ;
89
+ . ExcludeFromManifest ( ) ;
89
90
90
91
// Make the parent resource wait for the installer to complete
91
92
resource . WaitForCompletion ( installerBuilder ) ;
92
93
93
94
configureInstaller ? . Invoke ( installerBuilder ) ;
95
+
96
+ resource . WithAnnotation ( new JavaScriptPackageInstallerAnnotation ( installer ) ) ;
94
97
}
95
98
96
99
return resource ;
@@ -114,10 +117,11 @@ public static IResourceBuilder<NxResource> WithNpmPackageInstaller(this IResourc
114
117
var installerBuilder = resource . ApplicationBuilder . AddResource ( installer )
115
118
. WithArgs ( [ useCI ? "ci" : "install" ] )
116
119
. WithParentRelationship ( resource . Resource )
117
- . ExcludeFromManifest ( )
118
- . WithAnnotation ( new JavaScriptPackageInstallerAnnotation ( installer ) ) ;
120
+ . ExcludeFromManifest ( ) ;
119
121
120
122
configureInstaller ? . Invoke ( installerBuilder ) ;
123
+
124
+ resource . WithAnnotation ( new JavaScriptPackageInstallerAnnotation ( installer ) ) ;
121
125
}
122
126
123
127
return resource ;
@@ -140,10 +144,11 @@ public static IResourceBuilder<NxResource> WithYarnPackageInstaller(this IResour
140
144
var installerBuilder = resource . ApplicationBuilder . AddResource ( installer )
141
145
. WithArgs ( "install" )
142
146
. WithParentRelationship ( resource . Resource )
143
- . ExcludeFromManifest ( )
144
- . WithAnnotation ( new JavaScriptPackageInstallerAnnotation ( installer ) ) ;
147
+ . ExcludeFromManifest ( ) ;
145
148
146
149
configureInstaller ? . Invoke ( installerBuilder ) ;
150
+
151
+ resource . WithAnnotation ( new JavaScriptPackageInstallerAnnotation ( installer ) ) ;
147
152
}
148
153
149
154
return resource ;
@@ -166,10 +171,11 @@ public static IResourceBuilder<NxResource> WithPnpmPackageInstaller(this IResour
166
171
var installerBuilder = resource . ApplicationBuilder . AddResource ( installer )
167
172
. WithArgs ( "install" )
168
173
. WithParentRelationship ( resource . Resource )
169
- . ExcludeFromManifest ( )
170
- . WithAnnotation ( new JavaScriptPackageInstallerAnnotation ( installer ) ) ;
174
+ . ExcludeFromManifest ( ) ;
171
175
172
176
configureInstaller ? . Invoke ( installerBuilder ) ;
177
+
178
+ resource . WithAnnotation ( new JavaScriptPackageInstallerAnnotation ( installer ) ) ;
173
179
}
174
180
175
181
return resource ;
@@ -193,10 +199,11 @@ public static IResourceBuilder<TurborepoResource> WithNpmPackageInstaller(this I
193
199
var installerBuilder = resource . ApplicationBuilder . AddResource ( installer )
194
200
. WithArgs ( [ useCI ? "ci" : "install" ] )
195
201
. WithParentRelationship ( resource . Resource )
196
- . ExcludeFromManifest ( )
197
- . WithAnnotation ( new JavaScriptPackageInstallerAnnotation ( installer ) ) ;
202
+ . ExcludeFromManifest ( ) ;
198
203
199
204
configureInstaller ? . Invoke ( installerBuilder ) ;
205
+
206
+ resource . WithAnnotation ( new JavaScriptPackageInstallerAnnotation ( installer ) ) ;
200
207
}
201
208
202
209
return resource ;
@@ -219,10 +226,11 @@ public static IResourceBuilder<TurborepoResource> WithYarnPackageInstaller(this
219
226
var installerBuilder = resource . ApplicationBuilder . AddResource ( installer )
220
227
. WithArgs ( "install" )
221
228
. WithParentRelationship ( resource . Resource )
222
- . ExcludeFromManifest ( )
223
- . WithAnnotation ( new JavaScriptPackageInstallerAnnotation ( installer ) ) ;
229
+ . ExcludeFromManifest ( ) ;
224
230
225
231
configureInstaller ? . Invoke ( installerBuilder ) ;
232
+
233
+ resource . WithAnnotation ( new JavaScriptPackageInstallerAnnotation ( installer ) ) ;
226
234
}
227
235
228
236
return resource ;
@@ -245,10 +253,11 @@ public static IResourceBuilder<TurborepoResource> WithPnpmPackageInstaller(this
245
253
var installerBuilder = resource . ApplicationBuilder . AddResource ( installer )
246
254
. WithArgs ( "install" )
247
255
. WithParentRelationship ( resource . Resource )
248
- . ExcludeFromManifest ( )
249
- . WithAnnotation ( new JavaScriptPackageInstallerAnnotation ( installer ) ) ;
256
+ . ExcludeFromManifest ( ) ;
250
257
251
258
configureInstaller ? . Invoke ( installerBuilder ) ;
259
+
260
+ resource . WithAnnotation ( new JavaScriptPackageInstallerAnnotation ( installer ) ) ;
252
261
}
253
262
254
263
return resource ;
0 commit comments