Skip to content

Commit 2ac63d2

Browse files
authored
Merge branch 'main' into copilot/fix-772
2 parents 0082be5 + c6e9368 commit 2ac63d2

File tree

1 file changed

+12
-3
lines changed
  • src/CommunityToolkit.Aspire.Hosting.NodeJS.Extensions

1 file changed

+12
-3
lines changed

src/CommunityToolkit.Aspire.Hosting.NodeJS.Extensions/README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,26 @@ You can pass additional flags to package managers during installation:
7575
```csharp
7676
// npm with legacy peer deps support
7777
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+
})
7982
.WithExternalHttpEndpoints();
8083

8184
// yarn with frozen lockfile
8285
builder.AddYarnApp("yarn-app", "./path/to/app")
83-
.WithYarnPackageInstallation(args: ["--frozen-lockfile", "--verbose"])
86+
.WithYarnPackageInstallation(configureInstaller =>
87+
{
88+
configureInstaller.WithArgs("--frozen-lockfile", "--verbose");
89+
})
8490
.WithExternalHttpEndpoints();
8591

8692
// pnpm with frozen lockfile
8793
builder.AddPnpmApp("pnpm-app", "./path/to/app")
88-
.WithPnpmPackageInstallation(args: ["--frozen-lockfile"])
94+
.WithPnpmPackageInstallation(configureInstaller =>
95+
{
96+
configureInstaller.WithArgs("--frozen-lockfile");
97+
})
8998
.WithExternalHttpEndpoints();
9099
```
91100

0 commit comments

Comments
 (0)