Skip to content

Commit

Permalink
fix(deps): update dependency mermaid to v11 (#1864)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency mermaid to v11

* add chunk subfolders

* fix use of subfolders in msbuild tasks

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: David Vreony <dpvreony@users.noreply.github.com>
  • Loading branch information
renovate[bot] and dpvreony authored Sep 22, 2024
1 parent 87c7714 commit 2ba58e2
Show file tree
Hide file tree
Showing 3 changed files with 357 additions and 1,066 deletions.
10 changes: 5 additions & 5 deletions src/Whipstaff.Mermaid/Whipstaff.Mermaid.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
TODO: reduce the number of files being pulled by looking to see which files are minified...
This will reduce the size of the nuget pkg by about 50%
-->
<NpmMermaidFilesToCopy Include="$(ProjectDir)node_modules\mermaid\dist\*.js" />
<NpmMermaidFilesToCopy Include="$(ProjectDir)node_modules\mermaid\dist\*.mjs" />
<NpmMermaidFilesToCopy Include="$(ProjectDir)node_modules\mermaid\dist\**\*.js" />
<NpmMermaidFilesToCopy Include="$(ProjectDir)node_modules\mermaid\dist\**\*.mjs" />
</ItemGroup>
<Message Text="Starting NPM Package Copy Task" Importance="High" />
<Copy SkipUnchangedFiles="True" SourceFiles="@(NpmMermaidFilesToCopy)" DestinationFiles="@(NpmMermaidFilesToCopy->'$(ProjectDir)HttpServer\wwwroot\lib\mermaid\%(RecursiveDir)%(Filename)%(Extension)')" />
Expand Down Expand Up @@ -112,9 +112,9 @@
<Target Name="DeleteMermaidFiles" BeforeTargets="CopyNpmTasks" AfterTargets="RestoreNpm">
<Message Text="Deleting files" Importance="High" />
<ItemGroup>
<FilesToDelete Include="$(ProjectDir)HttpServer\wwwroot\lib\mermaid\*.js"/>
<FilesToDelete Include="$(ProjectDir)HttpServer\wwwroot\lib\mermaid\*.mjs"/>
<FilesToDelete Include="$(ProjectDir)HttpServer\wwwroot\lib\mermaid\*.gz"/>
<FilesToDelete Include="$(ProjectDir)HttpServer\wwwroot\lib\mermaid\**\*.js"/>
<FilesToDelete Include="$(ProjectDir)HttpServer\wwwroot\lib\mermaid\**\*.mjs"/>
<FilesToDelete Include="$(ProjectDir)HttpServer\wwwroot\lib\mermaid\**\*.gz"/>
</ItemGroup>
<Message Text="Files to delete: @(FilesToDelete)" Importance="High" />
<Delete Files="@(FilesToDelete)" />
Expand Down
Loading

0 comments on commit 2ba58e2

Please sign in to comment.