Skip to content

Commit

Permalink
Updated code
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRappl committed Mar 13, 2024
1 parent a98d4ee commit 0179fef
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
12 changes: 9 additions & 3 deletions src/Piral.Blazor.DevServer/PiralInstance.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
namespace Piral.Blazor.DevServer;

public class PiralInstance(string name, bool website)
public class PiralInstance
{
public string Name { get; } = name;
public PiralInstance(string name, bool website)
{
Name = name;
IsWebsite = website;
}

public bool IsWebsite { get; } = website;
public string Name { get; }

public bool IsWebsite { get; }
}
3 changes: 2 additions & 1 deletion src/Piral.Blazor.Tools/tasks/ManagePiletTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ private void InitializeNpmConfiguration()
else if (!String.IsNullOrEmpty(registry))
{
Log.LogMessage($"Creating '{configFileName}' with entry from NpmRegistry.");
File.AppendAllLines(Path.Combine(target, configFileName), [$"registry={registry}", "always-auth=true"], Encoding.UTF8);
var nl = Environment.NewLine;
File.AppendAllText(Path.Combine(target, configFileName), $"registry={registry}{nl}always-auth=true", Encoding.UTF8);
}
}

Expand Down

0 comments on commit 0179fef

Please sign in to comment.