Skip to content

Commit 05c4ffd

Browse files
kaiz-ioMichael Kaiser
andauthored
Update packages (#1147)
* Update package version * Commit these fixes * Fix api-gateway-lambda-token-authorizer * Fix snapshot tests by normalizing asset hashes * Fix build-pull-request to display errors * Fix build-pull-request to display errors * Ignore this project for right now * Ignore this project for right now * Update snapshot * clean node-modules after success * Update build to clean up after each build * Update installing cdk cli * Update installing cdk cli * Update snap * update inspector2 snap * Skip for now --------- Co-authored-by: Michael Kaiser <kaiser@kaiz.io>
1 parent 84eb08b commit 05c4ffd

File tree

88 files changed

+608
-1766
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+608
-1766
lines changed

.github/workflows/build-pull-request.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ jobs:
4545
run: |
4646
# Create a temporary directory for build logs
4747
mkdir -p /tmp/build_logs
48-
npm install -g eslint > /dev/null
49-
48+
yarn global add eslint@latest
49+
yarn global add aws-cdk@latest
5050
# Function to build a single file
5151
build_file() {
5252
echo "Build File $1"
@@ -70,17 +70,16 @@ jobs:
7070
7171
if [ $exit_code -eq 0 ]; then
7272
echo "✅ Build succeeded for $file"
73-
7473
# Clean up node_modules and cdk.out for this project immediately after successful build
7574
echo "Cleaning up build artifacts for $(dirname "$file")"
7675
local project_dir=$(dirname "$file")
77-
76+
7877
# Remove node_modules directory if it exists
7978
if [ -d "$project_dir/node_modules" ]; then
8079
echo "Removing $project_dir/node_modules"
8180
rm -rf "$project_dir/node_modules"
8281
fi
83-
82+
8483
# Remove cdk.out directory if it exists
8584
if [ -d "$project_dir/cdk.out" ]; then
8685
echo "Removing $project_dir/cdk.out"
@@ -129,13 +128,6 @@ jobs:
129128
# Change to language directory
130129
cd ./${{ matrix.language }}
131130
132-
# install CDK CLI from npm if not typescript, so that npx can find it later
133-
# ts will use the one from the particular cdk app
134-
if [[ ${{ matrix.language }} != 'typescript' ]]; then
135-
npm install -g aws-cdk
136-
npx cdk --version
137-
fi
138-
139131
# Run the build_file function in parallel for each project to be built
140132
# Halt the execution if any of the build_file invocations fail
141133
echo "::group::Build Output"
@@ -145,7 +137,6 @@ jobs:
145137
146138
# Check the exit status of parallel
147139
parallel_exit=$?
148-
149140
# If parallel failed, make sure the workflow fails too
150141
if [ $parallel_exit -ne 0 ]; then
151142
echo "::error::One or more builds failed. See build output above for details."

scripts/build-typescript.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fi
2020
# Check if yarn.lock exists
2121
if [ -f "yarn.lock" ]; then
2222
echo "yarn.lock file found. Running 'yarn install'..."
23-
yarn install --frozen-lockfile
23+
yarn install --frozen-lockfile --mutex network
2424
yarn build
2525
npm run --if-present test
2626
# Check if package-lock.json exists

scripts/synth.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if $fake_context; then
1212
cp $scriptdir/fake.context.json cdk.context.json
1313
fi
1414

15-
yarn global add cdk@latest
15+
# yarn global add cdk@latest # > Should not need anymore.
1616
cdk synth
1717

1818
if $fake_context; then

typescript/api-gateway-lambda-token-authorizer/test/stack/gateway-lambda-auth-stack.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ describe('Snapshot', () => {
99
const app = new App();
1010
const stack = new GatewayLambdaAuth(app, 'test-api-gateway-lambda-auth');
1111
const template = Template.fromStack(stack);
12-
1312
// Normalize the template before snapshot comparison
1413
const normalizedTemplate = normalizeTemplate(template.toJSON());
1514
expect(normalizedTemplate).toMatchSnapshot();

typescript/connect-cdk/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
"cdk": "cdk"
1212
},
1313
"devDependencies": {
14-
"@types/jest": "^29.5.12",
15-
"@types/node": "20.14.9",
16-
"aws-cdk": "2.157.0",
14+
"@types/jest": "^29.5.14",
15+
"@types/node": "22.7.9",
16+
"aws-cdk": "2.1004.0",
1717
"jest": "^29.7.0",
18-
"ts-jest": "^29.1.5",
18+
"ts-jest": "^29.2.5",
1919
"ts-node": "^10.9.2",
20-
"typescript": "~5.5.3"
20+
"typescript": "~5.6.3"
2121
},
2222
"dependencies": {
23-
"aws-cdk-lib": "2.157.0",
23+
"aws-cdk-lib": "2.185.0",
2424
"cdk-nag": "^2.30.0",
2525
"constructs": "^10.0.0",
2626
"source-map-support": "^0.5.21"

typescript/custom-logical-names/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
"cdk": "cdk"
1111
},
1212
"devDependencies": {
13-
"aws-cdk": "*",
14-
"ts-node": "^8.1.0",
15-
"typescript": "~5.1.6"
13+
"aws-cdk": "2.1004.0",
14+
"ts-node": "^10.9.2",
15+
"typescript": "~5.6.3"
1616
},
1717
"dependencies": {
18-
"aws-cdk-lib": "^2.0.0",
18+
"aws-cdk-lib": "2.185.0",
1919
"constructs": "^10.0.0",
2020
"source-map-support": "^0.5.9"
2121
}

typescript/custom-resource-provider/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
},
1212
"devDependencies": {
1313
"@aws-cdk/assert": "*",
14-
"@types/jest": "^26.0.10",
15-
"@types/node": "10.17.27",
16-
"jest": "^26.4.2",
17-
"ts-jest": "^29.1.1",
18-
"aws-cdk": "*",
19-
"ts-node": "^10.9.1",
20-
"typescript": "~5.1.6"
14+
"@types/jest": "^29.5.14",
15+
"@types/node": "22.7.9",
16+
"jest": "^29.7.0",
17+
"ts-jest": "^29.2.5",
18+
"aws-cdk": "2.1004.0",
19+
"ts-node": "^10.9.2",
20+
"typescript": "~5.6.3"
2121
},
2222
"dependencies": {
23-
"aws-cdk-lib": "^2.0.0",
23+
"aws-cdk-lib": "2.185.0",
2424
"constructs": "^10.0.0",
2525
"source-map-support": "^0.5.16"
2626
}

typescript/custom-resource/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
},
1616
"license": "Apache-2.0",
1717
"devDependencies": {
18-
"@types/node": "^10.17.0",
19-
"aws-cdk": "*",
20-
"typescript": "~5.1.6"
18+
"@types/node": "22.7.9",
19+
"aws-cdk": "2.1004.0",
20+
"typescript": "~5.6.3"
2121
},
2222
"dependencies": {
23-
"aws-cdk-lib": "^2.0.0",
23+
"aws-cdk-lib": "2.185.0",
2424
"constructs": "^10.0.0"
2525
}
2626
}

typescript/ddb-stream-lambda-sns/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
},
1313
"devDependencies": {
1414
"@types/jest": "^29.5.14",
15-
"@types/node": "22.9.0",
16-
"aws-cdk": "2.166.0",
15+
"@types/node": "22.7.9",
16+
"aws-cdk": "2.1004.0",
1717
"jest": "^29.7.0",
1818
"ts-jest": "^29.2.5",
1919
"ts-node": "^10.9.2",
2020
"typescript": "~5.6.3"
2121
},
2222
"dependencies": {
2323
"@aws-solutions-constructs/aws-dynamodbstreams-lambda": "^2.74.0",
24-
"aws-cdk-lib": "2.167.0",
25-
"constructs": "^10.4.2"
24+
"aws-cdk-lib": "2.185.0",
25+
"constructs": "^10.0.0"
2626
}
27-
}
27+
}

typescript/ddb/global-table-with-cmk/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
"cdk": "cdk"
1111
},
1212
"devDependencies": {
13-
"@types/jest": "^26.0.10",
14-
"@types/node": "10.17.27",
15-
"aws-cdk": "2.80.0",
16-
"jest": "^26.4.2",
17-
"ts-jest": "^26.2.0",
18-
"ts-node": "^9.0.0",
19-
"typescript": "~5.1.6"
13+
"@types/jest": "^29.5.14",
14+
"@types/node": "22.7.9",
15+
"aws-cdk": "2.1004.0",
16+
"jest": "^29.7.0",
17+
"ts-jest": "^29.2.5",
18+
"ts-node": "^10.9.2",
19+
"typescript": "~5.6.3"
2020
},
2121
"dependencies": {
22-
"aws-cdk-lib": "2.80.0",
22+
"aws-cdk-lib": "2.185.0",
2323
"constructs": "^10.0.0",
2424
"source-map-support": "^0.5.16"
2525
}

0 commit comments

Comments
 (0)