Skip to content

Commit

Permalink
Improved publish to avoid trimming issues #128
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRappl committed Dec 22, 2023
1 parent fdc0d20 commit 14dcac3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Piral.Blazor.Core/PiletService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ public void AddEventListener<T>(string type, Action<T> handler)

public void RemoveEventListener<T>(string type, Action<T> handler)
{
#pragma warning disable 252
_listeners.RemoveAll(listener => listener.Type == type && listener.Reference == handler);
#pragma warning restore 252
}

public void CallEventListeners(string type, JsonElement args)
Expand Down
4 changes: 3 additions & 1 deletion src/Piral.Blazor.Tools/tasks/PublishPiletTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ private void RunPublish()
RunPiralCli(target, $"pilet build");

// Replace with files from publish
CompareAndReplace(outdir, root);
// -- ignored for now as published artifacts might behave weird:
// -- https://github.com/smapiot/Piral.Blazor/issues/128
// CompareAndReplace(outdir, root);

// Pack and publish
RunPiralCli(target, $"pilet pack");
Expand Down

0 comments on commit 14dcac3

Please sign in to comment.