Skip to content

Commit 9367190

Browse files
committed
Namespace refactor for the nodejs integration extensions
1 parent 9d547b0 commit 9367190

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

examples/nodejs-ext/CommunityToolkit.Aspire.Hosting.NodeJS.Extensions.AppHost/Program.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using CommunityToolkit.Aspire.Hosting.NodeJS.Extensions;
2-
31
var builder = DistributedApplication.CreateBuilder(args);
42

53
builder.AddViteApp("vite-demo")

src/CommunityToolkit.Aspire.Hosting.NodeJS.Extensions/NodeJSHostingExtensions.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
using Aspire.Hosting;
2-
using Aspire.Hosting.ApplicationModel;
1+
using Aspire.Hosting.ApplicationModel;
32
using Aspire.Hosting.Lifecycle;
3+
using Aspire.Hosting.Utils;
4+
using CommunityToolkit.Aspire.Hosting.NodeJS.Extensions;
45
using Microsoft.Extensions.Hosting;
56

6-
namespace CommunityToolkit.Aspire.Hosting.NodeJS.Extensions;
7+
namespace Aspire.Hosting;
78

89
public static class NodeJSHostingExtensions
910
{

src/CommunityToolkit.Aspire.Hosting.NodeJS.Extensions/NodePackageInstaller.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55

66
namespace CommunityToolkit.Aspire.Hosting.NodeJS.Extensions;
77

8-
98
/// <summary>
109
/// Represents a Node package installer.
1110
/// </summary>
1211
/// <param name="packageManager">The package manager to use.</param>
1312
/// <param name="loggerService">The logger service to use.</param>
1413
/// <param name="notificationService">The notification service to use.</param>
15-
class NodePackageInstaller(string packageManager, ResourceLoggerService loggerService, ResourceNotificationService notificationService)
14+
internal class NodePackageInstaller(string packageManager, ResourceLoggerService loggerService, ResourceNotificationService notificationService)
1615
{
1716
/// <summary>
1817
/// Finds the Node.js resources using the specified package manager and installs the packages.

src/CommunityToolkit.Aspire.Hosting.NodeJS.Extensions/PathNormalizer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace CommunityToolkit.Aspire.Hosting.NodeJS.Extensions;
1+
namespace Aspire.Hosting.Utils;
22

33
// Copied from https://github.com/dotnet/aspire/blob/50ca9fa670af5c70782dc75d2961956b06f1a403/src/Shared/PathNormalizer.cs
44
internal static class PathNormalizer

0 commit comments

Comments
 (0)