@@ -29,11 +29,17 @@ import {
29
29
const GITHUB_USER = 'awslabs' ;
30
30
const PUBLICATION_NAMESPACE = 'cdklabs' ;
31
31
const PROJECT_NAME = 'generative-ai-cdk-constructs' ;
32
- const CDK_VERSION : string = '2.166 .0' ;
32
+ const CDK_VERSION : string = '2.174 .0' ;
33
33
34
34
function camelCaseIt ( input : string ) : string {
35
35
// Hypens and dashes to spaces and then CamelCase...
36
- return input . replace ( / - / g, ' ' ) . replace ( / _ / g, ' ' ) . replace ( / (?: ^ \w | [ A - Z ] | \b \w | \s + ) / g, function ( match , _ ) { if ( + match === 0 ) return '' ; return match . toUpperCase ( ) ; } ) ;
36
+ return input
37
+ . replace ( / - / g, ' ' )
38
+ . replace ( / _ / g, ' ' )
39
+ . replace ( / (?: ^ \w | [ A - Z ] | \b \w | \s + ) / g, function ( match , _ ) {
40
+ if ( + match === 0 ) return '' ;
41
+ return match . toUpperCase ( ) ;
42
+ } ) ;
37
43
}
38
44
39
45
const project = new awscdk . AwsCdkConstructLibrary ( {
@@ -65,14 +71,8 @@ const project = new awscdk.AwsCdkConstructLibrary({
65
71
'@aws-cdk/assert' ,
66
72
`@aws-cdk/integ-tests-alpha@${ CDK_VERSION } -alpha.0` ,
67
73
] ,
68
- deps : [
69
- 'cdk-nag' ,
70
-
71
-
72
- ] ,
73
- bundledDeps : [
74
- 'deepmerge' ,
75
- ] ,
74
+ deps : [ 'cdk-nag' ] ,
75
+ bundledDeps : [ 'deepmerge' ] ,
76
76
// Keep synchronized with https://github.com/nodejs/release#release-schedule
77
77
minNodeVersion : '18.12.0' , // 'MAINTENANCE' (first LTS)
78
78
maxNodeVersion : '20.x' , // 'CURRENT'
@@ -83,7 +83,7 @@ const project = new awscdk.AwsCdkConstructLibrary({
83
83
84
84
publishToPypi : {
85
85
distName : PUBLICATION_NAMESPACE + '.' + PROJECT_NAME ,
86
- module : ( PUBLICATION_NAMESPACE . replace ( / - / g, '_' ) ) + '.' + ( PROJECT_NAME . replace ( / - / g, '_' ) ) , // PEP 8, convert hypens
86
+ module : PUBLICATION_NAMESPACE . replace ( / - / g, '_' ) + '.' + PROJECT_NAME . replace ( / - / g, '_' ) , // PEP 8, convert hypens
87
87
// twineRegistryUrl: '${{ secrets.TWINE_REGISTRY_URL }}',
88
88
} ,
89
89
@@ -109,7 +109,8 @@ const project = new awscdk.AwsCdkConstructLibrary({
109
109
110
110
githubOptions : {
111
111
pullRequestLintOptions : {
112
- contributorStatement : 'By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.' ,
112
+ contributorStatement :
113
+ 'By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.' ,
113
114
contributorStatementOptions : {
114
115
exemptUsers : [
115
116
'amazon-auto' ,
@@ -127,15 +128,7 @@ const project = new awscdk.AwsCdkConstructLibrary({
127
128
license : 'Apache-2.0' ,
128
129
copyrightPeriod : '2023-' ,
129
130
copyrightOwner : 'Amazon.com, Inc. or its affiliates. All Rights Reserved.' ,
130
- gitignore : [
131
- '*.DS_STORE' ,
132
- '!.node-version' ,
133
- '*.pyc' ,
134
- '__pycache__/' ,
135
- '!.ort.yml' ,
136
- '.idea' ,
137
- '.vscode' ,
138
- ] ,
131
+ gitignore : [ '*.DS_STORE' , '!.node-version' , '*.pyc' , '__pycache__/' , '!.ort.yml' , '.idea' , '.vscode' ] ,
139
132
stability : 'experimental' ,
140
133
sampleCode : false ,
141
134
stale : true ,
@@ -164,16 +157,23 @@ if (workflowUpgradeMain) {
164
157
}
165
158
166
159
// Update Snapshots
167
- project . upgradeWorkflow ?. postUpgradeTask . spawn (
168
- project . tasks . tryFind ( 'integ:snapshot-all' ) ! ,
169
- ) ;
160
+ project . upgradeWorkflow ?. postUpgradeTask . spawn ( project . tasks . tryFind ( 'integ:snapshot-all' ) ! ) ;
170
161
171
162
// Add specific overrides https://projen.io/docs/integrations/github/#actions-versions
172
163
project . github ?. actions . set ( 'actions/checkout@v3' , 'actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11' ) ; // https://github.com/projen/projen/issues/3529
173
164
project . github ?. actions . set ( 'actions/checkout@v4' , 'actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11' ) ;
174
- project . github ?. actions . set ( 'actions/download-artifact@v3' , 'actions/download-artifact@b4aefff88e83a2676a730654e1ce3dce61880379' ) ; // https://github.com/projen/projen/issues/3529
175
- project . github ?. actions . set ( 'actions/download-artifact@v4' , 'actions/download-artifact@b4aefff88e83a2676a730654e1ce3dce61880379' ) ;
176
- project . github ?. actions . set ( 'actions/github-script@v6' , 'actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410' ) ;
165
+ project . github ?. actions . set (
166
+ 'actions/download-artifact@v3' ,
167
+ 'actions/download-artifact@b4aefff88e83a2676a730654e1ce3dce61880379' ,
168
+ ) ; // https://github.com/projen/projen/issues/3529
169
+ project . github ?. actions . set (
170
+ 'actions/download-artifact@v4' ,
171
+ 'actions/download-artifact@b4aefff88e83a2676a730654e1ce3dce61880379' ,
172
+ ) ;
173
+ project . github ?. actions . set (
174
+ 'actions/github-script@v6' ,
175
+ 'actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410' ,
176
+ ) ;
177
177
project . github ?. actions . set ( 'actions/setup-dotnet@v3' , 'actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3' ) ;
178
178
project . github ?. actions . set ( 'actions/setup-dotnet@v4' , 'actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3' ) ;
179
179
project . github ?. actions . set ( 'actions/setup-go@v5' , 'actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32' ) ;
@@ -184,22 +184,67 @@ project.github?.actions.set('actions/setup-python@v5', 'actions/setup-python@82c
184
184
project . github ?. actions . set ( 'actions/setup-java@v3' , 'actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9' ) ;
185
185
project . github ?. actions . set ( 'actions/setup-java@v4' , 'actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9' ) ;
186
186
project . github ?. actions . set ( 'actions/stale@v4' , 'actions/stale@a20b814fb01b71def3bd6f56e7494d667ddf28da' ) ;
187
- project . github ?. actions . set ( 'actions/upload-artifact@v3' , 'actions/upload-artifact@18bf333cd2249fbbbdb605fd9d9ed57efd7adf34' ) ; // https://github.com/projen/projen/issues/3529
188
- project . github ?. actions . set ( 'actions/upload-artifact@v4' , 'actions/upload-artifact@18bf333cd2249fbbbdb605fd9d9ed57efd7adf34' ) ;
189
- project . github ?. actions . set ( 'amannn/[email protected] ' , 'amannn/action-semantic-pull-request@01d5fd8a8ebb9aafe902c40c53f0f4744f7381eb' ) ;
190
- project . github ?. actions . set ( 'amannn/[email protected] ' , 'amannn/action-semantic-pull-request@e9fabac35e210fea40ca5b14c0da95a099eff26f' ) ;
191
- project . github ?. actions . set ( 'aws-github-ops/github-merit-badger@main' , 'aws-github-ops/github-merit-badger@70d1c47f7051d6e324d4ddc48d676ba61ef69a3e' ) ;
192
- project . github ?. actions . set ( 'codecov/codecov-action@v3' , 'codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed' ) ; // https://github.com/projen/projen/issues/3529
193
- project . github ?. actions . set ( 'codecov/codecov-action@v4' , 'codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed' ) ;
187
+ project . github ?. actions . set (
188
+ 'actions/upload-artifact@v3' ,
189
+ 'actions/upload-artifact@18bf333cd2249fbbbdb605fd9d9ed57efd7adf34' ,
190
+ ) ; // https://github.com/projen/projen/issues/3529
191
+ project . github ?. actions . set (
192
+ 'actions/upload-artifact@v4' ,
193
+ 'actions/upload-artifact@18bf333cd2249fbbbdb605fd9d9ed57efd7adf34' ,
194
+ ) ;
195
+ project . github ?. actions . set (
196
+
197
+ 'amannn/action-semantic-pull-request@01d5fd8a8ebb9aafe902c40c53f0f4744f7381eb' ,
198
+ ) ;
199
+ project . github ?. actions . set (
200
+
201
+ 'amannn/action-semantic-pull-request@e9fabac35e210fea40ca5b14c0da95a099eff26f' ,
202
+ ) ;
203
+ project . github ?. actions . set (
204
+ 'aws-github-ops/github-merit-badger@main' ,
205
+ 'aws-github-ops/github-merit-badger@70d1c47f7051d6e324d4ddc48d676ba61ef69a3e' ,
206
+ ) ;
207
+ project . github ?. actions . set (
208
+ 'codecov/codecov-action@v3' ,
209
+ 'codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed' ,
210
+ ) ; // https://github.com/projen/projen/issues/3529
211
+ project . github ?. actions . set (
212
+ 'codecov/codecov-action@v4' ,
213
+ 'codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed' ,
214
+ ) ;
194
215
project . github ?. actions . set ( 'github/issue-metrics@v2' , 'github/issue-metrics@6bc5254e72971dbb7462db077779f1643f772afd' ) ;
195
- project . github ?. actions . set ( 'hmarr/[email protected] ' , 'hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363' ) ;
196
- project . github ?. actions . set ( 'minicli/[email protected] ' , 'minicli/action-contributors@20ec03af008cb51110a3137fbf77f59a4fd7ff5a' ) ;
197
- project . github ?. actions . set ( 'oss-review-toolkit/ort-ci-github-action@v1' , 'oss-review-toolkit/ort-ci-github-action@7f23c1f8d169dad430e41df223d3b8409c7a156e' ) ;
198
- project . github ?. actions . set ( 'peter-evans/create-issue-from-file@v4' , 'peter-evans/create-issue-from-file@433e51abf769039ee20ba1293a088ca19d573b7f' ) ;
199
- project . github ?. actions . set ( 'peter-evans/create-pull-request@v4' , 'peter-evans/create-pull-request@38e0b6e68b4c852a5500a94740f0e535e0d7ba54' ) ;
200
- project . github ?. actions . set ( 'peter-evans/create-pull-request@v5' , 'peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38' ) ;
201
- project . github ?. actions . set ( 'peter-evans/create-pull-request@v6' , 'peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50' ) ;
202
- project . github ?. actions . set ( 'aws-actions/[email protected] ' , 'aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502' ) ;
216
+ project . github ?. actions . set (
217
+
218
+ 'hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363' ,
219
+ ) ;
220
+ project . github ?. actions . set (
221
+
222
+ 'minicli/action-contributors@20ec03af008cb51110a3137fbf77f59a4fd7ff5a' ,
223
+ ) ;
224
+ project . github ?. actions . set (
225
+ 'oss-review-toolkit/ort-ci-github-action@v1' ,
226
+ 'oss-review-toolkit/ort-ci-github-action@7f23c1f8d169dad430e41df223d3b8409c7a156e' ,
227
+ ) ;
228
+ project . github ?. actions . set (
229
+ 'peter-evans/create-issue-from-file@v4' ,
230
+ 'peter-evans/create-issue-from-file@433e51abf769039ee20ba1293a088ca19d573b7f' ,
231
+ ) ;
232
+ project . github ?. actions . set (
233
+ 'peter-evans/create-pull-request@v4' ,
234
+ 'peter-evans/create-pull-request@38e0b6e68b4c852a5500a94740f0e535e0d7ba54' ,
235
+ ) ;
236
+ project . github ?. actions . set (
237
+ 'peter-evans/create-pull-request@v5' ,
238
+ 'peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38' ,
239
+ ) ;
240
+ project . github ?. actions . set (
241
+ 'peter-evans/create-pull-request@v6' ,
242
+ 'peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50' ,
243
+ ) ;
244
+ project . github ?. actions . set (
245
+
246
+ 'aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502' ,
247
+ ) ;
203
248
project . github ?. actions . set ( 'imjohnbo/issue-bot@v3' , 'imjohnbo/issue-bot@3daae12aa54d38685d7ff8459fc8a2aee8cea98b' ) ;
204
249
205
250
// We don't want to package certain things
@@ -240,7 +285,19 @@ project.eslint?.addIgnorePattern('DockerLambdaCustomProps.ts');
240
285
new ProjenStruct ( project , { name : 'DockerLambdaCustomProps' , filePath : 'src/common/props/DockerLambdaCustomProps.ts' } )
241
286
. mixin ( Struct . fromFqn ( 'aws-cdk-lib.aws_lambda.DockerImageFunctionProps' ) )
242
287
. withoutDeprecated ( )
243
- . omit ( 'tracing' , 'functionName' , 'description' , 'role' , 'vpc' , 'vpcSubnets' , 'securityGroups' , 'role' , 'layers' , 'allowPublicSubnet' , 'allowAllOutbound' ) ;
288
+ . omit (
289
+ 'tracing' ,
290
+ 'functionName' ,
291
+ 'description' ,
292
+ 'role' ,
293
+ 'vpc' ,
294
+ 'vpcSubnets' ,
295
+ 'securityGroups' ,
296
+ 'role' ,
297
+ 'layers' ,
298
+ 'allowPublicSubnet' ,
299
+ 'allowAllOutbound' ,
300
+ ) ;
244
301
245
302
const packageJson = project . tryFindObjectFile ( 'package.json' ) ;
246
303
packageJson ?. patch ( JsonPatch . add ( '/scripts/prepare' , 'husky install' ) ) ; // yarn 1
@@ -274,7 +331,9 @@ project.addTask('generate-models-containers', {
274
331
275
332
const postCompile = project . tasks . tryFind ( 'post-compile' ) ;
276
333
if ( postCompile ) {
277
- postCompile . exec ( 'npx typedoc --plugin typedoc-plugin-markdown --out apidocs --readme none --categoryOrder "Namespaces,Classes,Interfaces,*" --disableSources ./src/index.ts' ) ;
334
+ postCompile . exec (
335
+ 'npx typedoc --plugin typedoc-plugin-markdown --out apidocs --readme none --categoryOrder "Namespaces,Classes,Interfaces,*" --disableSources ./src/index.ts' ,
336
+ ) ;
278
337
}
279
338
280
339
project . synth ( ) ;
0 commit comments