File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -75,17 +75,26 @@ You can pass additional flags to package managers during installation:
75
75
``` csharp
76
76
// npm with legacy peer deps support
77
77
builder .AddNpmApp (" npm-app" , " ./path/to/app" )
78
- .WithNpmPackageInstallation (useCI : false , args : [" --legacy-peer-deps" ])
78
+ .WithNpmPackageInstallation (useCI : false , configureInstaller =>
79
+ {
80
+ configureInstaller .WithArgs (" --legacy-peer-deps" );
81
+ })
79
82
.WithExternalHttpEndpoints ();
80
83
81
84
// yarn with frozen lockfile
82
85
builder .AddYarnApp (" yarn-app" , " ./path/to/app" )
83
- .WithYarnPackageInstallation (args : [" --frozen-lockfile" , " --verbose" ])
86
+ .WithYarnPackageInstallation (configureInstaller =>
87
+ {
88
+ configureInstaller .WithArgs (" --frozen-lockfile" , " --verbose" );
89
+ })
84
90
.WithExternalHttpEndpoints ();
85
91
86
92
// pnpm with frozen lockfile
87
93
builder .AddPnpmApp (" pnpm-app" , " ./path/to/app" )
88
- .WithPnpmPackageInstallation (args : [" --frozen-lockfile" ])
94
+ .WithPnpmPackageInstallation (configureInstaller =>
95
+ {
96
+ configureInstaller .WithArgs (" --frozen-lockfile" );
97
+ })
89
98
.WithExternalHttpEndpoints ();
90
99
```
91
100
You can’t perform that action at this time.
0 commit comments