Skip to content

Commit

Permalink
fix(wasm): Adjust TS compiler dependency on CompileTypeScriptWithTSCo…
Browse files Browse the repository at this point in the history
…nfig
  • Loading branch information
jeromelaban committed Oct 3, 2022
1 parent b872d46 commit ab0e1d8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,18 @@

</Target>

<ItemGroup>
<_UnoEmbeddedResourcesInjectionAfterTargets Include="CoreCompile" />
<_UnoEmbeddedResourcesInjectionAfterTargets Include="_UnoLinkerHintsSubstitutionsMerge" />
</ItemGroup>

<Target Name="_UnoEmbeddedResourcesInjection"
Condition="
'$(DesignTimeBuild)' != 'true'
and '$(BuildingInsideUnoSourceGenerator)' == ''
and '$(SkipCompilerExecution)' == ''
and ('$(UnoXamlResourcesTrimming)'=='true' or '$(UnoRewriteEmbeddedResources)'=='true')"
AfterTargets="CoreCompile;_UnoLinkerHintsSubstitutionsMerge;CompileTypeScriptWithTSConfig">
AfterTargets="@(_UnoEmbeddedResourcesInjectionAfterTargets)">

<ItemGroup>
<!-- Filter ReferenceCopyLocalPaths as it may contain pdbs as well -->
Expand Down
4 changes: 4 additions & 0 deletions src/Uno.UI.Wasm.Tests/Uno.UI.Wasm.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
<CompilerVisibleProperty Include="TSBindingAssemblySource" />
</ItemGroup>

<ItemGroup>
<_UnoEmbeddedResourcesInjectionAfterTargets Include="CompileTypeScriptWithTSConfig" />
</ItemGroup>

<ItemGroup>
<None Remove="tsconfig.json" />
<Content Include="tsconfig.json" />
Expand Down
4 changes: 4 additions & 0 deletions src/Uno.UI/Uno.UI.Wasm.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@
<CompilerVisibleProperty Include="TSBindingAssemblySource" />
</ItemGroup>

<ItemGroup>
<_UnoEmbeddedResourcesInjectionAfterTargets Include="CompileTypeScriptWithTSConfig" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="LinkerDefinition.Wasm.xml">
<LogicalName>$(AssemblyName).xml</LogicalName>
Expand Down

0 comments on commit ab0e1d8

Please sign in to comment.