Skip to content

Commit 3f1707b

Browse files
authored
feat: update version prefix to 2.1.0-preview and upgrade package dependencies (#37)
1 parent 06bdc5a commit 3f1707b

4 files changed

Lines changed: 12 additions & 6 deletions

File tree

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<VersionPrefix>2.0.1</VersionPrefix>
3+
<VersionPrefix>2.1.0-preview</VersionPrefix>
44
<!-- SPDX license identifier for MIT -->
55
<PackageLicenseExpression>MIT</PackageLicenseExpression>
66

src/LayeredCraft.Cdk.Constructs/LayeredCraft.Cdk.Constructs.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
</PropertyGroup>
1616

1717
<ItemGroup>
18-
<PackageReference Include="Amazon.CDK.Lib" Version="2.213.0" />
18+
<PackageReference Include="Amazon.CDK.Lib" Version="2.220.0" />
19+
<PackageReference Include="Amazon.JSII.Runtime" Version="1.116.0" />
20+
<PackageReference Include="Constructs" Version="10.4.2" />
1921
</ItemGroup>
2022
<ItemGroup>
2123
<None Include="..\..\docs\assets\icon.png" Pack="true" PackagePath="" Visible="False" />

src/LayeredCraft.Cdk.Constructs/StaticSiteConstruct.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,16 @@ public StaticSiteConstruct(Construct scope, string id, IStaticSiteConstructProps
133133
});
134134
}
135135

136+
var distRef = Distribution.FromDistributionAttributes(this, "DistRef", new DistributionAttributes {
137+
DistributionId = distribution.DistributionId,
138+
DomainName = distribution.DomainName
139+
});
136140
// Deploy static assets to S3 bucket and invalidate CloudFront cache
137141
_ = new BucketDeployment(this, $"{id}-deployment", new BucketDeploymentProps
138142
{
139143
Sources = [Source.Asset(props.AssetPath)],
140144
DestinationBucket = siteBucket,
141-
Distribution = distribution,
145+
Distribution = distRef,
142146
DistributionPaths = ["/*"],
143147
MemoryLimit = 1024
144148
});

test/LayeredCraft.Cdk.Constructs.Tests/LayeredCraft.Cdk.Constructs.Tests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
<PackageReference Include="AutoFixture" Version="4.18.1"/>
3434
<PackageReference Include="AutoFixture.AutoNSubstitute" Version="4.18.1"/>
3535
<PackageReference Include="AutoFixture.Xunit3" Version="4.19.0"/>
36-
<PackageReference Include="AwesomeAssertions" Version="9.1.0" />
36+
<PackageReference Include="AwesomeAssertions" Version="9.2.0" />
3737
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1"/>
3838
<PackageReference Include="NSubstitute" Version="5.3.0"/>
39-
<PackageReference Include="xunit.v3" Version="3.0.1" />
40-
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.4">
39+
<PackageReference Include="xunit.v3" Version="3.1.0" />
40+
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
4141
<PrivateAssets>all</PrivateAssets>
4242
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4343
</PackageReference>

0 commit comments

Comments
 (0)