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 @@ -31,17 +31,26 @@ You can pass additional flags to package managers during installation:
3131``` csharp
3232// npm with legacy peer deps support
3333builder .AddNpmApp (" npm-app" , " ./path/to/app" )
34- .WithNpmPackageInstallation (useCI : false , args : [" --legacy-peer-deps" ])
34+ .WithNpmPackageInstallation (useCI : false , configureInstaller =>
35+ {
36+ configureInstaller .WithArgs (" --legacy-peer-deps" );
37+ })
3538 .WithExternalHttpEndpoints ();
3639
3740// yarn with frozen lockfile
3841builder .AddYarnApp (" yarn-app" , " ./path/to/app" )
39- .WithYarnPackageInstallation (args : [" --frozen-lockfile" , " --verbose" ])
42+ .WithYarnPackageInstallation (configureInstaller =>
43+ {
44+ configureInstaller .WithArgs (" --frozen-lockfile" , " --verbose" );
45+ })
4046 .WithExternalHttpEndpoints ();
4147
4248// pnpm with frozen lockfile
4349builder .AddPnpmApp (" pnpm-app" , " ./path/to/app" )
44- .WithPnpmPackageInstallation (args : [" --frozen-lockfile" ])
50+ .WithPnpmPackageInstallation (configureInstaller =>
51+ {
52+ configureInstaller .WithArgs (" --frozen-lockfile" );
53+ })
4554 .WithExternalHttpEndpoints ();
4655```
4756
You can’t perform that action at this time.
0 commit comments