Skip to content

Commit

Permalink
Another attempt to fix the build
Browse files Browse the repository at this point in the history
  • Loading branch information
craigfowler committed Nov 1, 2024
1 parent d9a57a5 commit 51673db
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,19 @@

<Error Text="Template file was not generated at $(TemplateOutputFile)"
Condition="!Exists('$(TemplateOutputFile)')" />


</Target>

<Target Name="AddTemplateResource"
AfterTargets="BuildTemplate"
BeforeTargets="PrepareResources">
<Error Text="Template file missing: $(TemplateOutputFile)"
Condition="!Exists('$(TemplateOutputFile)')" />
<ItemGroup>
<EmbeddedResource Include="$(TemplateOutputFile)" Type="Non-Resx" WithCulture="false" />
<EmbeddedResource Include="$(TemplateOutputFile)"
LogicalName="template.html"
Type="Non-Resx"
WithCulture="false" />
</ItemGroup>
</Target>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export class ScenarioAggregator {
#getFeatureContainer(accumulator, feature) {
if (feature.Identifier === null) return accumulator.noFeatureScenarios;
if (Object.hasOwn(accumulator.features, feature.Identifier)) return accumulator.features[feature.Identifier];
return accumulator.features[feature.Identifier] = this.#createFeatureContainer(feature); }
return accumulator.features[feature.Identifier] = this.#createFeatureContainer(feature);
}

#createFeatureContainer(feature) {
return { feature: { Identifier: feature.Identifier, Name: feature.Name, WasIdentifierAutoGenerated: feature.WasIdentifierAutoGenerated }, scenarios: [] };
Expand Down

0 comments on commit 51673db

Please sign in to comment.