projen 0.38.1 → 0.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +100 -39
- package/API.md +34 -12
- package/lib/awscdk/auto-discover.js +1 -1
- package/lib/awscdk/awscdk-app-ts.js +1 -1
- package/lib/awscdk/awscdk-construct.d.ts +21 -13
- package/lib/awscdk/awscdk-construct.js +64 -34
- package/lib/awscdk/cdk-config.js +1 -1
- package/lib/awscdk/cdk-tasks.js +1 -1
- package/lib/awscdk/integration-test.js +4 -4
- package/lib/awscdk/java-app.js +1 -1
- package/lib/awscdk/lambda-function.js +2 -2
- package/lib/cdk/construct-lib.js +1 -1
- package/lib/cdk/jsii-docgen.js +1 -1
- package/lib/cdk/jsii-project.js +1 -1
- package/lib/cdk8s/cdk8s-app-ts.js +1 -1
- package/lib/cdk8s/cdk8s-construct.js +1 -1
- package/lib/cdktf/cdktf-construct.js +1 -1
- package/lib/component.js +1 -1
- package/lib/dependencies.d.ts +13 -0
- package/lib/dependencies.js +23 -4
- package/lib/dev-env.js +1 -1
- package/lib/docker-compose.js +2 -2
- package/lib/file.js +1 -1
- package/lib/gitattributes.js +3 -4
- package/lib/github/auto-approve.js +1 -1
- package/lib/github/auto-merge.js +1 -1
- package/lib/github/dependabot.js +1 -1
- package/lib/github/github-project.js +1 -1
- package/lib/github/github.js +1 -1
- package/lib/github/mergify.js +1 -1
- package/lib/github/pr-template.js +1 -1
- package/lib/github/pull-request-lint.js +1 -1
- package/lib/github/stale.js +1 -1
- package/lib/github/task-workflow.js +1 -1
- package/lib/github/workflows.js +1 -1
- package/lib/gitpod.js +1 -1
- package/lib/ignore-file.js +1 -1
- package/lib/ini.js +1 -1
- package/lib/java/java-project.js +1 -1
- package/lib/java/junit.js +1 -1
- package/lib/java/maven-compile.js +1 -1
- package/lib/java/maven-packaging.js +1 -1
- package/lib/java/maven-sample.js +1 -1
- package/lib/java/pom.js +1 -1
- package/lib/java/projenrc.js +1 -1
- package/lib/javascript/bundler.js +1 -1
- package/lib/javascript/eslint.js +1 -1
- package/lib/javascript/jest.js +1 -1
- package/lib/javascript/node-package.js +1 -1
- package/lib/javascript/node-project.js +1 -1
- package/lib/javascript/npm-config.js +1 -1
- package/lib/javascript/projenrc.js +1 -1
- package/lib/javascript/typescript-config.js +1 -1
- package/lib/javascript/upgrade-dependencies.js +2 -2
- package/lib/json.js +1 -1
- package/lib/license.js +1 -1
- package/lib/logger.js +1 -1
- package/lib/makefile.js +1 -1
- package/lib/object-file.js +1 -1
- package/lib/project-build.js +1 -1
- package/lib/project.js +1 -1
- package/lib/projects.js +1 -1
- package/lib/projenrc-json.js +1 -1
- package/lib/python/pip.js +1 -1
- package/lib/python/poetry.js +2 -2
- package/lib/python/projenrc.js +1 -1
- package/lib/python/pytest.js +1 -1
- package/lib/python/python-project.js +1 -1
- package/lib/python/python-sample.js +1 -1
- package/lib/python/requirements-file.js +1 -1
- package/lib/python/setuppy.js +1 -1
- package/lib/python/setuptools.js +1 -1
- package/lib/python/venv.js +1 -1
- package/lib/readme.js +1 -1
- package/lib/release/publisher.js +1 -1
- package/lib/release/release-trigger.js +1 -1
- package/lib/release/release.js +1 -1
- package/lib/sample-file.js +2 -2
- package/lib/semver.js +1 -1
- package/lib/source-code.js +1 -1
- package/lib/task-runtime.js +1 -1
- package/lib/task.js +1 -1
- package/lib/tasks.js +1 -1
- package/lib/textfile.js +1 -1
- package/lib/toml.js +1 -1
- package/lib/typescript/projenrc.js +1 -1
- package/lib/typescript/typescript-typedoc.js +1 -1
- package/lib/typescript/typescript.js +3 -3
- package/lib/version.js +1 -1
- package/lib/vscode/devcontainer.js +1 -1
- package/lib/vscode/launch-config.js +1 -1
- package/lib/vscode/vscode.js +1 -1
- package/lib/web/next.js +3 -3
- package/lib/web/postcss.js +1 -1
- package/lib/web/react.js +4 -4
- package/lib/web/tailwind.js +1 -1
- package/lib/xmlfile.js +1 -1
- package/lib/yaml.js +1 -1
- package/node_modules/xmlbuilder2/node_modules/@types/node/README.md +1 -1
- package/node_modules/xmlbuilder2/node_modules/@types/node/http.d.ts +1 -1
- package/node_modules/xmlbuilder2/node_modules/@types/node/package.json +2 -2
- package/package.json +2 -2
package/.jsii
CHANGED
|
@@ -445,7 +445,7 @@
|
|
|
445
445
|
},
|
|
446
446
|
"locationInModule": {
|
|
447
447
|
"filename": "src/dependencies.ts",
|
|
448
|
-
"line":
|
|
448
|
+
"line": 126
|
|
449
449
|
},
|
|
450
450
|
"name": "addDependency",
|
|
451
451
|
"parameters": [
|
|
@@ -533,7 +533,7 @@
|
|
|
533
533
|
},
|
|
534
534
|
"locationInModule": {
|
|
535
535
|
"filename": "src/dependencies.ts",
|
|
536
|
-
"line":
|
|
536
|
+
"line": 158
|
|
537
537
|
},
|
|
538
538
|
"name": "removeDependency",
|
|
539
539
|
"parameters": [
|
|
@@ -558,6 +558,47 @@
|
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
]
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"docs": {
|
|
564
|
+
"remarks": "Returns `undefined` if there is no dependency defined by that name or if\n`type` is not provided and there is more then one dependency type for this\ndependency.",
|
|
565
|
+
"returns": "a copy (cannot be modified) or undefined if there is no match",
|
|
566
|
+
"stability": "experimental",
|
|
567
|
+
"summary": "Returns a dependency by name."
|
|
568
|
+
},
|
|
569
|
+
"locationInModule": {
|
|
570
|
+
"filename": "src/dependencies.ts",
|
|
571
|
+
"line": 108
|
|
572
|
+
},
|
|
573
|
+
"name": "tryGetDependency",
|
|
574
|
+
"parameters": [
|
|
575
|
+
{
|
|
576
|
+
"docs": {
|
|
577
|
+
"summary": "The name of the dependency."
|
|
578
|
+
},
|
|
579
|
+
"name": "name",
|
|
580
|
+
"type": {
|
|
581
|
+
"primitive": "string"
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
"docs": {
|
|
586
|
+
"remarks": "If this dependency is defined only for a\nsingle type, this argument can be omitted.",
|
|
587
|
+
"summary": "The dependency type."
|
|
588
|
+
},
|
|
589
|
+
"name": "type",
|
|
590
|
+
"optional": true,
|
|
591
|
+
"type": {
|
|
592
|
+
"fqn": "projen.DependencyType"
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
],
|
|
596
|
+
"returns": {
|
|
597
|
+
"optional": true,
|
|
598
|
+
"type": {
|
|
599
|
+
"fqn": "projen.Dependency"
|
|
600
|
+
}
|
|
601
|
+
}
|
|
561
602
|
}
|
|
562
603
|
],
|
|
563
604
|
"name": "Dependencies",
|
|
@@ -617,7 +658,7 @@
|
|
|
617
658
|
"kind": "interface",
|
|
618
659
|
"locationInModule": {
|
|
619
660
|
"filename": "src/dependencies.ts",
|
|
620
|
-
"line":
|
|
661
|
+
"line": 246
|
|
621
662
|
},
|
|
622
663
|
"name": "Dependency",
|
|
623
664
|
"properties": [
|
|
@@ -630,7 +671,7 @@
|
|
|
630
671
|
"immutable": true,
|
|
631
672
|
"locationInModule": {
|
|
632
673
|
"filename": "src/dependencies.ts",
|
|
633
|
-
"line":
|
|
674
|
+
"line": 251
|
|
634
675
|
},
|
|
635
676
|
"name": "type",
|
|
636
677
|
"type": {
|
|
@@ -647,7 +688,7 @@
|
|
|
647
688
|
"immutable": true,
|
|
648
689
|
"locationInModule": {
|
|
649
690
|
"filename": "src/dependencies.ts",
|
|
650
|
-
"line":
|
|
691
|
+
"line": 258
|
|
651
692
|
},
|
|
652
693
|
"name": "metadata",
|
|
653
694
|
"optional": true,
|
|
@@ -674,7 +715,7 @@
|
|
|
674
715
|
"kind": "interface",
|
|
675
716
|
"locationInModule": {
|
|
676
717
|
"filename": "src/dependencies.ts",
|
|
677
|
-
"line":
|
|
718
|
+
"line": 226
|
|
678
719
|
},
|
|
679
720
|
"name": "DependencyCoordinates",
|
|
680
721
|
"properties": [
|
|
@@ -688,7 +729,7 @@
|
|
|
688
729
|
"immutable": true,
|
|
689
730
|
"locationInModule": {
|
|
690
731
|
"filename": "src/dependencies.ts",
|
|
691
|
-
"line":
|
|
732
|
+
"line": 233
|
|
692
733
|
},
|
|
693
734
|
"name": "name",
|
|
694
735
|
"type": {
|
|
@@ -705,7 +746,7 @@
|
|
|
705
746
|
"immutable": true,
|
|
706
747
|
"locationInModule": {
|
|
707
748
|
"filename": "src/dependencies.ts",
|
|
708
|
-
"line":
|
|
749
|
+
"line": 240
|
|
709
750
|
},
|
|
710
751
|
"name": "version",
|
|
711
752
|
"optional": true,
|
|
@@ -726,7 +767,7 @@
|
|
|
726
767
|
"kind": "enum",
|
|
727
768
|
"locationInModule": {
|
|
728
769
|
"filename": "src/dependencies.ts",
|
|
729
|
-
"line":
|
|
770
|
+
"line": 264
|
|
730
771
|
},
|
|
731
772
|
"members": [
|
|
732
773
|
{
|
|
@@ -785,7 +826,7 @@
|
|
|
785
826
|
"kind": "interface",
|
|
786
827
|
"locationInModule": {
|
|
787
828
|
"filename": "src/dependencies.ts",
|
|
788
|
-
"line":
|
|
829
|
+
"line": 216
|
|
789
830
|
},
|
|
790
831
|
"name": "DepsManifest",
|
|
791
832
|
"properties": [
|
|
@@ -798,7 +839,7 @@
|
|
|
798
839
|
"immutable": true,
|
|
799
840
|
"locationInModule": {
|
|
800
841
|
"filename": "src/dependencies.ts",
|
|
801
|
-
"line":
|
|
842
|
+
"line": 220
|
|
802
843
|
},
|
|
803
844
|
"name": "dependencies",
|
|
804
845
|
"type": {
|
|
@@ -9122,7 +9163,7 @@
|
|
|
9122
9163
|
},
|
|
9123
9164
|
"locationInModule": {
|
|
9124
9165
|
"filename": "src/awscdk/awscdk-construct.ts",
|
|
9125
|
-
"line":
|
|
9166
|
+
"line": 129
|
|
9126
9167
|
},
|
|
9127
9168
|
"parameters": [
|
|
9128
9169
|
{
|
|
@@ -9136,7 +9177,7 @@
|
|
|
9136
9177
|
"kind": "class",
|
|
9137
9178
|
"locationInModule": {
|
|
9138
9179
|
"filename": "src/awscdk/awscdk-construct.ts",
|
|
9139
|
-
"line":
|
|
9180
|
+
"line": 118
|
|
9140
9181
|
},
|
|
9141
9182
|
"methods": [
|
|
9142
9183
|
{
|
|
@@ -9147,7 +9188,7 @@
|
|
|
9147
9188
|
},
|
|
9148
9189
|
"locationInModule": {
|
|
9149
9190
|
"filename": "src/awscdk/awscdk-construct.ts",
|
|
9150
|
-
"line":
|
|
9191
|
+
"line": 228
|
|
9151
9192
|
},
|
|
9152
9193
|
"name": "addCdkDependencies",
|
|
9153
9194
|
"parameters": [
|
|
@@ -9171,7 +9212,7 @@
|
|
|
9171
9212
|
},
|
|
9172
9213
|
"locationInModule": {
|
|
9173
9214
|
"filename": "src/awscdk/awscdk-construct.ts",
|
|
9174
|
-
"line":
|
|
9215
|
+
"line": 244
|
|
9175
9216
|
},
|
|
9176
9217
|
"name": "addCdkTestDependencies",
|
|
9177
9218
|
"parameters": [
|
|
@@ -9200,7 +9241,7 @@
|
|
|
9200
9241
|
"immutable": true,
|
|
9201
9242
|
"locationInModule": {
|
|
9202
9243
|
"filename": "src/awscdk/awscdk-construct.ts",
|
|
9203
|
-
"line":
|
|
9244
|
+
"line": 127
|
|
9204
9245
|
},
|
|
9205
9246
|
"name": "cdkDependenciesAsDeps",
|
|
9206
9247
|
"type": {
|
|
@@ -9215,7 +9256,7 @@
|
|
|
9215
9256
|
"immutable": true,
|
|
9216
9257
|
"locationInModule": {
|
|
9217
9258
|
"filename": "src/awscdk/awscdk-construct.ts",
|
|
9218
|
-
"line":
|
|
9259
|
+
"line": 122
|
|
9219
9260
|
},
|
|
9220
9261
|
"name": "cdkVersion",
|
|
9221
9262
|
"type": {
|
|
@@ -9230,7 +9271,7 @@
|
|
|
9230
9271
|
"immutable": true,
|
|
9231
9272
|
"locationInModule": {
|
|
9232
9273
|
"filename": "src/awscdk/awscdk-construct.ts",
|
|
9233
|
-
"line":
|
|
9274
|
+
"line": 211
|
|
9234
9275
|
},
|
|
9235
9276
|
"name": "version",
|
|
9236
9277
|
"type": {
|
|
@@ -9265,7 +9306,7 @@
|
|
|
9265
9306
|
"custom": {
|
|
9266
9307
|
"featured": "true"
|
|
9267
9308
|
},
|
|
9268
|
-
"default": "\"
|
|
9309
|
+
"default": "\"2.0.0\"",
|
|
9269
9310
|
"stability": "experimental",
|
|
9270
9311
|
"summary": "Minimum target version this library is tested against."
|
|
9271
9312
|
},
|
|
@@ -9282,14 +9323,15 @@
|
|
|
9282
9323
|
{
|
|
9283
9324
|
"abstract": true,
|
|
9284
9325
|
"docs": {
|
|
9285
|
-
"default": "
|
|
9286
|
-
"
|
|
9326
|
+
"default": "false",
|
|
9327
|
+
"deprecated": "- use cdkAssertions instead",
|
|
9328
|
+
"stability": "deprecated",
|
|
9287
9329
|
"summary": "Install the @aws-cdk/assert library?"
|
|
9288
9330
|
},
|
|
9289
9331
|
"immutable": true,
|
|
9290
9332
|
"locationInModule": {
|
|
9291
9333
|
"filename": "src/awscdk/awscdk-construct.ts",
|
|
9292
|
-
"line":
|
|
9334
|
+
"line": 69
|
|
9293
9335
|
},
|
|
9294
9336
|
"name": "cdkAssert",
|
|
9295
9337
|
"optional": true,
|
|
@@ -9300,10 +9342,27 @@
|
|
|
9300
9342
|
{
|
|
9301
9343
|
"abstract": true,
|
|
9302
9344
|
"docs": {
|
|
9303
|
-
"
|
|
9304
|
-
|
|
9305
|
-
},
|
|
9345
|
+
"default": "true",
|
|
9346
|
+
"remarks": "Only needed for CDK 1.x. If using CDK 2.x then\nassertions is already included in 'aws-cdk-lib'",
|
|
9306
9347
|
"stability": "experimental",
|
|
9348
|
+
"summary": "Install the @aws-cdk/assertions library?"
|
|
9349
|
+
},
|
|
9350
|
+
"immutable": true,
|
|
9351
|
+
"locationInModule": {
|
|
9352
|
+
"filename": "src/awscdk/awscdk-construct.ts",
|
|
9353
|
+
"line": 79
|
|
9354
|
+
},
|
|
9355
|
+
"name": "cdkAssertions",
|
|
9356
|
+
"optional": true,
|
|
9357
|
+
"type": {
|
|
9358
|
+
"primitive": "boolean"
|
|
9359
|
+
}
|
|
9360
|
+
},
|
|
9361
|
+
{
|
|
9362
|
+
"abstract": true,
|
|
9363
|
+
"docs": {
|
|
9364
|
+
"deprecated": "- For CDK 2.x use 'peerDeps' instead",
|
|
9365
|
+
"stability": "deprecated",
|
|
9307
9366
|
"summary": "Which AWS CDK modules (those that start with \"@aws-cdk/\") does this library require when consumed?"
|
|
9308
9367
|
},
|
|
9309
9368
|
"immutable": true,
|
|
@@ -9326,14 +9385,15 @@
|
|
|
9326
9385
|
"abstract": true,
|
|
9327
9386
|
"docs": {
|
|
9328
9387
|
"default": "true",
|
|
9388
|
+
"deprecated": "- Not used for CDK 2.x",
|
|
9329
9389
|
"remarks": "This is to ensure that downstream consumers actually have your CDK dependencies installed\nwhen using npm < 7 or yarn, where peer dependencies are not automatically installed.\nIf this is disabled, `cdkDependencies` will be added to `devDependencies` to ensure\nthey are present during development.",
|
|
9330
|
-
"stability": "
|
|
9390
|
+
"stability": "deprecated",
|
|
9331
9391
|
"summary": "If this is enabled (default), all modules declared in `cdkDependencies` will be also added as normal `dependencies` (as well as `peerDependencies`)."
|
|
9332
9392
|
},
|
|
9333
9393
|
"immutable": true,
|
|
9334
9394
|
"locationInModule": {
|
|
9335
9395
|
"filename": "src/awscdk/awscdk-construct.ts",
|
|
9336
|
-
"line":
|
|
9396
|
+
"line": 61
|
|
9337
9397
|
},
|
|
9338
9398
|
"name": "cdkDependenciesAsDeps",
|
|
9339
9399
|
"optional": true,
|
|
@@ -9347,13 +9407,14 @@
|
|
|
9347
9407
|
"custom": {
|
|
9348
9408
|
"featured": "true"
|
|
9349
9409
|
},
|
|
9350
|
-
"
|
|
9410
|
+
"deprecated": "- For CDK 2.x use 'devDeps' instead",
|
|
9411
|
+
"stability": "deprecated",
|
|
9351
9412
|
"summary": "AWS CDK modules required for testing."
|
|
9352
9413
|
},
|
|
9353
9414
|
"immutable": true,
|
|
9354
9415
|
"locationInModule": {
|
|
9355
9416
|
"filename": "src/awscdk/awscdk-construct.ts",
|
|
9356
|
-
"line":
|
|
9417
|
+
"line": 89
|
|
9357
9418
|
},
|
|
9358
9419
|
"name": "cdkTestDependencies",
|
|
9359
9420
|
"optional": true,
|
|
@@ -9377,7 +9438,7 @@
|
|
|
9377
9438
|
"immutable": true,
|
|
9378
9439
|
"locationInModule": {
|
|
9379
9440
|
"filename": "src/awscdk/awscdk-construct.ts",
|
|
9380
|
-
"line":
|
|
9441
|
+
"line": 39
|
|
9381
9442
|
},
|
|
9382
9443
|
"name": "cdkVersionPinning",
|
|
9383
9444
|
"optional": true,
|
|
@@ -9388,7 +9449,7 @@
|
|
|
9388
9449
|
{
|
|
9389
9450
|
"abstract": true,
|
|
9390
9451
|
"docs": {
|
|
9391
|
-
"default": "- When the default behavior is used, the dependency on `constructs` will
|
|
9452
|
+
"default": "- When the default behavior is used, the dependency on `constructs` will\nbe added as both a `peerDependency` and a `devDependency`.",
|
|
9392
9453
|
"remarks": "- For CDK 1.x, the default is \"3.2.27\"\n- For CDK 2.x, the default is \"10.0.5\"\n- Otherwise, the default is \"*\"",
|
|
9393
9454
|
"stability": "experimental",
|
|
9394
9455
|
"summary": "Minimum target version of constructs being tested against. If not provided, the default value depends on the configured `cdkVersion`:."
|
|
@@ -9396,7 +9457,7 @@
|
|
|
9396
9457
|
"immutable": true,
|
|
9397
9458
|
"locationInModule": {
|
|
9398
9459
|
"filename": "src/awscdk/awscdk-construct.ts",
|
|
9399
|
-
"line":
|
|
9460
|
+
"line": 29
|
|
9400
9461
|
},
|
|
9401
9462
|
"name": "constructsVersion",
|
|
9402
9463
|
"optional": true,
|
|
@@ -9414,7 +9475,7 @@
|
|
|
9414
9475
|
"immutable": true,
|
|
9415
9476
|
"locationInModule": {
|
|
9416
9477
|
"filename": "src/awscdk/awscdk-construct.ts",
|
|
9417
|
-
"line":
|
|
9478
|
+
"line": 99
|
|
9418
9479
|
},
|
|
9419
9480
|
"name": "lambdaAutoDiscover",
|
|
9420
9481
|
"optional": true,
|
|
@@ -9432,7 +9493,7 @@
|
|
|
9432
9493
|
"immutable": true,
|
|
9433
9494
|
"locationInModule": {
|
|
9434
9495
|
"filename": "src/awscdk/awscdk-construct.ts",
|
|
9435
|
-
"line":
|
|
9496
|
+
"line": 106
|
|
9436
9497
|
},
|
|
9437
9498
|
"name": "lambdaOptions",
|
|
9438
9499
|
"optional": true,
|
|
@@ -10308,7 +10369,7 @@
|
|
|
10308
10369
|
},
|
|
10309
10370
|
"locationInModule": {
|
|
10310
10371
|
"filename": "src/awscdk/awscdk-construct.ts",
|
|
10311
|
-
"line":
|
|
10372
|
+
"line": 129
|
|
10312
10373
|
},
|
|
10313
10374
|
"parameters": [
|
|
10314
10375
|
{
|
|
@@ -10322,7 +10383,7 @@
|
|
|
10322
10383
|
"kind": "class",
|
|
10323
10384
|
"locationInModule": {
|
|
10324
10385
|
"filename": "src/awscdk/awscdk-construct.ts",
|
|
10325
|
-
"line":
|
|
10386
|
+
"line": 257
|
|
10326
10387
|
},
|
|
10327
10388
|
"name": "ConstructLibraryAws",
|
|
10328
10389
|
"namespace": "awscdk",
|
|
@@ -10342,7 +10403,7 @@
|
|
|
10342
10403
|
"kind": "interface",
|
|
10343
10404
|
"locationInModule": {
|
|
10344
10405
|
"filename": "src/awscdk/awscdk-construct.ts",
|
|
10345
|
-
"line":
|
|
10406
|
+
"line": 254
|
|
10346
10407
|
},
|
|
10347
10408
|
"name": "ConstructLibraryAwsOptions",
|
|
10348
10409
|
"namespace": "awscdk",
|
|
@@ -35178,6 +35239,6 @@
|
|
|
35178
35239
|
"symbolId": "src/web/tailwind:TailwindConfigOptions"
|
|
35179
35240
|
}
|
|
35180
35241
|
},
|
|
35181
|
-
"version": "0.
|
|
35182
|
-
"fingerprint": "
|
|
35242
|
+
"version": "0.39.0",
|
|
35243
|
+
"fingerprint": "91IBwgWECu0O63+irpEyBKBVfFN5J5Q1EctliJGWNnU="
|
|
35183
35244
|
}
|
package/API.md
CHANGED
|
@@ -470,6 +470,24 @@ removeDependency(name: string, type?: DependencyType): void
|
|
|
470
470
|
|
|
471
471
|
|
|
472
472
|
|
|
473
|
+
#### tryGetDependency(name, type?)🔹 <a id="projen-dependencies-trygetdependency"></a>
|
|
474
|
+
|
|
475
|
+
Returns a dependency by name.
|
|
476
|
+
|
|
477
|
+
Returns `undefined` if there is no dependency defined by that name or if
|
|
478
|
+
`type` is not provided and there is more then one dependency type for this
|
|
479
|
+
dependency.
|
|
480
|
+
|
|
481
|
+
```ts
|
|
482
|
+
tryGetDependency(name: string, type?: DependencyType): Dependency
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
* **name** (<code>string</code>) The name of the dependency.
|
|
486
|
+
* **type** (<code>[DependencyType](#projen-dependencytype)</code>) The dependency type.
|
|
487
|
+
|
|
488
|
+
__Returns__:
|
|
489
|
+
* <code>[Dependency](#projen-dependency)</code>
|
|
490
|
+
|
|
473
491
|
#### *static* parseDependency(spec)🔹 <a id="projen-dependencies-parsedependency"></a>
|
|
474
492
|
|
|
475
493
|
Returns the coordinates of a dependency spec.
|
|
@@ -2977,12 +2995,13 @@ new awscdk.AwsCdkConstructLibrary(options: AwsCdkConstructLibraryOptions)
|
|
|
2977
2995
|
* **rootdir** (<code>string</code>) *No description* __*Default*__: "."
|
|
2978
2996
|
* **catalog** (<code>[cdk.Catalog](#projen-cdk-catalog)</code>) Libraries will be picked up by the construct catalog when they are published to npm as jsii modules and will be published under:. __*Default*__: new version will be announced
|
|
2979
2997
|
* **cdkVersion** (<code>string</code>) Minimum target version this library is tested against.
|
|
2980
|
-
* **cdkAssert** (<code>boolean</code>) Install the @aws-cdk/assert library? __*Default*__:
|
|
2998
|
+
* **cdkAssert** (<code>boolean</code>) Install the @aws-cdk/assert library? __*Default*__: false
|
|
2999
|
+
* **cdkAssertions** (<code>boolean</code>) Install the @aws-cdk/assertions library? __*Default*__: true
|
|
2981
3000
|
* **cdkDependencies** (<code>Array<string></code>) Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed? __*Optional*__
|
|
2982
3001
|
* **cdkDependenciesAsDeps** (<code>boolean</code>) If this is enabled (default), all modules declared in `cdkDependencies` will be also added as normal `dependencies` (as well as `peerDependencies`). __*Default*__: true
|
|
2983
3002
|
* **cdkTestDependencies** (<code>Array<string></code>) AWS CDK modules required for testing. __*Optional*__
|
|
2984
3003
|
* **cdkVersionPinning** (<code>boolean</code>) Use pinned version instead of caret version for CDK. __*Default*__: false
|
|
2985
|
-
* **constructsVersion** (<code>string</code>) Minimum target version of constructs being tested against. If not provided, the default value depends on the configured `cdkVersion`:. __*Default*__: When the default behavior is used, the dependency on `constructs` will
|
|
3004
|
+
* **constructsVersion** (<code>string</code>) Minimum target version of constructs being tested against. If not provided, the default value depends on the configured `cdkVersion`:. __*Default*__: When the default behavior is used, the dependency on `constructs` will be added as both a `peerDependency` and a `devDependency`.
|
|
2986
3005
|
* **lambdaAutoDiscover** (<code>boolean</code>) Automatically adds an `aws_lambda.Function` for each `.lambda.ts` handler in your source tree. If this is disabled, you either need to explicitly call `aws_lambda.Function.autoDiscover()` or define a `new aws_lambda.Function()` for each handler. __*Default*__: true
|
|
2987
3006
|
* **lambdaOptions** (<code>[awscdk.LambdaFunctionCommonOptions](#projen-awscdk-lambdafunctioncommonoptions)</code>) Common options for all AWS Lambda functions. __*Default*__: default options
|
|
2988
3007
|
|
|
@@ -3544,12 +3563,13 @@ new awscdk.ConstructLibraryAws(options: AwsCdkConstructLibraryOptions)
|
|
|
3544
3563
|
* **rootdir** (<code>string</code>) *No description* __*Default*__: "."
|
|
3545
3564
|
* **catalog** (<code>[cdk.Catalog](#projen-cdk-catalog)</code>) Libraries will be picked up by the construct catalog when they are published to npm as jsii modules and will be published under:. __*Default*__: new version will be announced
|
|
3546
3565
|
* **cdkVersion** (<code>string</code>) Minimum target version this library is tested against.
|
|
3547
|
-
* **cdkAssert** (<code>boolean</code>) Install the @aws-cdk/assert library? __*Default*__:
|
|
3566
|
+
* **cdkAssert** (<code>boolean</code>) Install the @aws-cdk/assert library? __*Default*__: false
|
|
3567
|
+
* **cdkAssertions** (<code>boolean</code>) Install the @aws-cdk/assertions library? __*Default*__: true
|
|
3548
3568
|
* **cdkDependencies** (<code>Array<string></code>) Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed? __*Optional*__
|
|
3549
3569
|
* **cdkDependenciesAsDeps** (<code>boolean</code>) If this is enabled (default), all modules declared in `cdkDependencies` will be also added as normal `dependencies` (as well as `peerDependencies`). __*Default*__: true
|
|
3550
3570
|
* **cdkTestDependencies** (<code>Array<string></code>) AWS CDK modules required for testing. __*Optional*__
|
|
3551
3571
|
* **cdkVersionPinning** (<code>boolean</code>) Use pinned version instead of caret version for CDK. __*Default*__: false
|
|
3552
|
-
* **constructsVersion** (<code>string</code>) Minimum target version of constructs being tested against. If not provided, the default value depends on the configured `cdkVersion`:. __*Default*__: When the default behavior is used, the dependency on `constructs` will
|
|
3572
|
+
* **constructsVersion** (<code>string</code>) Minimum target version of constructs being tested against. If not provided, the default value depends on the configured `cdkVersion`:. __*Default*__: When the default behavior is used, the dependency on `constructs` will be added as both a `peerDependency` and a `devDependency`.
|
|
3553
3573
|
* **lambdaAutoDiscover** (<code>boolean</code>) Automatically adds an `aws_lambda.Function` for each `.lambda.ts` handler in your source tree. If this is disabled, you either need to explicitly call `aws_lambda.Function.autoDiscover()` or define a `new aws_lambda.Function()` for each handler. __*Default*__: true
|
|
3554
3574
|
* **lambdaOptions** (<code>[awscdk.LambdaFunctionCommonOptions](#projen-awscdk-lambdafunctioncommonoptions)</code>) Common options for all AWS Lambda functions. __*Default*__: default options
|
|
3555
3575
|
|
|
@@ -9075,7 +9095,7 @@ Name | Type | Description
|
|
|
9075
9095
|
|
|
9076
9096
|
## struct Dependency 🔹 <a id="projen-dependency"></a>
|
|
9077
9097
|
|
|
9078
|
-
__Obtainable from__: [JavaProject](#projen-java-javaproject).[addPlugin](#projen-java-javaproject#projen-java-javaproject-addplugin)(), [Pom](#projen-java-pom).[addPlugin](#projen-java-pom#projen-java-pom-addplugin)(), [Dependencies](#projen-dependencies).[addDependency](#projen-dependencies#projen-dependencies-adddependency)(), [Dependencies](#projen-dependencies).[getDependency](#projen-dependencies#projen-dependencies-getdependency)()
|
|
9098
|
+
__Obtainable from__: [JavaProject](#projen-java-javaproject).[addPlugin](#projen-java-javaproject#projen-java-javaproject-addplugin)(), [Pom](#projen-java-pom).[addPlugin](#projen-java-pom#projen-java-pom-addplugin)(), [Dependencies](#projen-dependencies).[addDependency](#projen-dependencies#projen-dependencies-adddependency)(), [Dependencies](#projen-dependencies).[getDependency](#projen-dependencies#projen-dependencies-getdependency)(), [Dependencies](#projen-dependencies).[tryGetDependency](#projen-dependencies#projen-dependencies-trygetdependency)()
|
|
9079
9099
|
|
|
9080
9100
|
Represents a project dependency.
|
|
9081
9101
|
|
|
@@ -9995,10 +10015,11 @@ Name | Type | Description
|
|
|
9995
10015
|
**bundledDeps**?🔹 | <code>Array<string></code> | List of dependencies to bundle into this module.<br/>__*Optional*__
|
|
9996
10016
|
**bundlerOptions**?🔹 | <code>[javascript.BundlerOptions](#projen-javascript-bundleroptions)</code> | Options for `Bundler`.<br/>__*Optional*__
|
|
9997
10017
|
**catalog**?🔹 | <code>[cdk.Catalog](#projen-cdk-catalog)</code> | Libraries will be picked up by the construct catalog when they are published to npm as jsii modules and will be published under:.<br/>__*Default*__: new version will be announced
|
|
9998
|
-
**cdkAssert
|
|
9999
|
-
**
|
|
10000
|
-
**
|
|
10001
|
-
**
|
|
10018
|
+
**cdkAssert**?⚠️ | <code>boolean</code> | Install the @aws-cdk/assert library?<br/>__*Default*__: false
|
|
10019
|
+
**cdkAssertions**?🔹 | <code>boolean</code> | Install the @aws-cdk/assertions library?<br/>__*Default*__: true
|
|
10020
|
+
**cdkDependencies**?⚠️ | <code>Array<string></code> | Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed?<br/>__*Optional*__
|
|
10021
|
+
**cdkDependenciesAsDeps**?⚠️ | <code>boolean</code> | If this is enabled (default), all modules declared in `cdkDependencies` will be also added as normal `dependencies` (as well as `peerDependencies`).<br/>__*Default*__: true
|
|
10022
|
+
**cdkTestDependencies**?⚠️ | <code>Array<string></code> | AWS CDK modules required for testing.<br/>__*Optional*__
|
|
10002
10023
|
**cdkVersionPinning**?🔹 | <code>boolean</code> | Use pinned version instead of caret version for CDK.<br/>__*Default*__: false
|
|
10003
10024
|
**clobber**?🔹 | <code>boolean</code> | Add a `clobber` task which resets the repo to origin.<br/>__*Default*__: true
|
|
10004
10025
|
**codeArtifactOptions**?🔹 | <code>[javascript.CodeArtifactOptions](#projen-javascript-codeartifactoptions)</code> | Options for publishing npm package to AWS CodeArtifact.<br/>__*Default*__: undefined
|
|
@@ -10006,7 +10027,7 @@ Name | Type | Description
|
|
|
10006
10027
|
**codeCovTokenSecret**?🔹 | <code>string</code> | Define the secret name for a specified https://codecov.io/ token A secret is required to send coverage for private repositories.<br/>__*Default*__: if this option is not specified, only public repositories are supported
|
|
10007
10028
|
**compat**?🔹 | <code>boolean</code> | Automatically run API compatibility test against the latest version published to npm after compilation.<br/>__*Default*__: false
|
|
10008
10029
|
**compatIgnore**?🔹 | <code>string</code> | Name of the ignore file for API compatibility tests.<br/>__*Default*__: ".compatignore"
|
|
10009
|
-
**constructsVersion**?🔹 | <code>string</code> | Minimum target version of constructs being tested against. If not provided, the default value depends on the configured `cdkVersion`:.<br/>__*Default*__: When the default behavior is used, the dependency on `constructs` will
|
|
10030
|
+
**constructsVersion**?🔹 | <code>string</code> | Minimum target version of constructs being tested against. If not provided, the default value depends on the configured `cdkVersion`:.<br/>__*Default*__: When the default behavior is used, the dependency on `constructs` will be added as both a `peerDependency` and a `devDependency`.
|
|
10010
10031
|
**copyrightOwner**?🔹 | <code>string</code> | License copyright owner.<br/>__*Default*__: defaults to the value of authorName or "" if `authorName` is undefined.
|
|
10011
10032
|
**copyrightPeriod**?🔹 | <code>string</code> | The copyright years to put in the LICENSE file.<br/>__*Default*__: current year
|
|
10012
10033
|
**dependabot**?🔹 | <code>boolean</code> | Use dependabot to handle dependency upgrades.<br/>__*Default*__: false
|
|
@@ -10394,7 +10415,8 @@ Name | Type | Description
|
|
|
10394
10415
|
**bundledDeps**?⚠️ | <code>Array<string></code> | List of dependencies to bundle into this module.<br/>__*Optional*__
|
|
10395
10416
|
**bundlerOptions**?⚠️ | <code>[javascript.BundlerOptions](#projen-javascript-bundleroptions)</code> | Options for `Bundler`.<br/>__*Optional*__
|
|
10396
10417
|
**catalog**?⚠️ | <code>[cdk.Catalog](#projen-cdk-catalog)</code> | Libraries will be picked up by the construct catalog when they are published to npm as jsii modules and will be published under:.<br/>__*Default*__: new version will be announced
|
|
10397
|
-
**cdkAssert**?⚠️ | <code>boolean</code> | Install the @aws-cdk/assert library?<br/>__*Default*__:
|
|
10418
|
+
**cdkAssert**?⚠️ | <code>boolean</code> | Install the @aws-cdk/assert library?<br/>__*Default*__: false
|
|
10419
|
+
**cdkAssertions**?⚠️ | <code>boolean</code> | Install the @aws-cdk/assertions library?<br/>__*Default*__: true
|
|
10398
10420
|
**cdkDependencies**?⚠️ | <code>Array<string></code> | Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed?<br/>__*Optional*__
|
|
10399
10421
|
**cdkDependenciesAsDeps**?⚠️ | <code>boolean</code> | If this is enabled (default), all modules declared in `cdkDependencies` will be also added as normal `dependencies` (as well as `peerDependencies`).<br/>__*Default*__: true
|
|
10400
10422
|
**cdkTestDependencies**?⚠️ | <code>Array<string></code> | AWS CDK modules required for testing.<br/>__*Optional*__
|
|
@@ -10405,7 +10427,7 @@ Name | Type | Description
|
|
|
10405
10427
|
**codeCovTokenSecret**?⚠️ | <code>string</code> | Define the secret name for a specified https://codecov.io/ token A secret is required to send coverage for private repositories.<br/>__*Default*__: if this option is not specified, only public repositories are supported
|
|
10406
10428
|
**compat**?⚠️ | <code>boolean</code> | Automatically run API compatibility test against the latest version published to npm after compilation.<br/>__*Default*__: false
|
|
10407
10429
|
**compatIgnore**?⚠️ | <code>string</code> | Name of the ignore file for API compatibility tests.<br/>__*Default*__: ".compatignore"
|
|
10408
|
-
**constructsVersion**?⚠️ | <code>string</code> | Minimum target version of constructs being tested against. If not provided, the default value depends on the configured `cdkVersion`:.<br/>__*Default*__: When the default behavior is used, the dependency on `constructs` will
|
|
10430
|
+
**constructsVersion**?⚠️ | <code>string</code> | Minimum target version of constructs being tested against. If not provided, the default value depends on the configured `cdkVersion`:.<br/>__*Default*__: When the default behavior is used, the dependency on `constructs` will be added as both a `peerDependency` and a `devDependency`.
|
|
10409
10431
|
**copyrightOwner**?⚠️ | <code>string</code> | License copyright owner.<br/>__*Default*__: defaults to the value of authorName or "" if `authorName` is undefined.
|
|
10410
10432
|
**copyrightPeriod**?⚠️ | <code>string</code> | The copyright years to put in the LICENSE file.<br/>__*Default*__: current year
|
|
10411
10433
|
**dependabot**?⚠️ | <code>boolean</code> | Use dependabot to handle dependency upgrades.<br/>__*Default*__: false
|
|
@@ -48,5 +48,5 @@ class AutoDiscover extends component_1.Component {
|
|
|
48
48
|
}
|
|
49
49
|
exports.AutoDiscover = AutoDiscover;
|
|
50
50
|
_a = JSII_RTTI_SYMBOL_1;
|
|
51
|
-
AutoDiscover[_a] = { fqn: "projen.awscdk.AutoDiscover", version: "0.
|
|
51
|
+
AutoDiscover[_a] = { fqn: "projen.awscdk.AutoDiscover", version: "0.39.0" };
|
|
52
52
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0by1kaXNjb3Zlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hd3NjZGsvYXV0by1kaXNjb3Zlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLCtCQUE0QjtBQUM1Qiw2QkFBNkI7QUFDN0Isd0JBQW9DO0FBQ3BDLDRDQUF5QztBQUV6Qyx5Q0FBeUU7QUFDekUsdURBQWdGOzs7Ozs7QUFrQmhGLE1BQWEsWUFBYSxTQUFRLHFCQUFTOzs7O0lBR3pDLFlBQVksT0FBZ0IsRUFBRSxPQUE0QjtRQUN4RCxLQUFLLENBQUMsT0FBTyxDQUFDLENBQUM7UUFFZixJQUFJLENBQUMsMkJBQTJCLENBQUMsT0FBTyxDQUFDLENBQUM7UUFDMUMsSUFBSSxDQUFDLDRCQUE0QixDQUFDLE9BQU8sQ0FBQyxDQUFDO0lBQzdDLENBQUM7SUFFTywyQkFBMkIsQ0FBQyxPQUE0QjtRQUM5RCxNQUFNLFdBQVcsR0FBRyxJQUFJLENBQUMsSUFBSSxDQUFDLE9BQU8sZ0NBQXFCLEVBQUUsRUFBRTtZQUM1RCxHQUFHLEVBQUUsV0FBSSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsTUFBTSxFQUFFLE9BQU8sQ0FBQyxNQUFNLENBQUM7U0FDL0MsQ0FBQyxDQUFDO1FBRUgsS0FBSyxNQUFNLFVBQVUsSUFBSSxXQUFXLEVBQUU7WUFDcEMsSUFBSSxnQ0FBYyxDQUFDLElBQUksQ0FBQyxPQUFPLEVBQUU7Z0JBQy9CLFVBQVUsRUFBRSxXQUFJLENBQUMsT0FBTyxDQUFDLE1BQU0sRUFBRSxVQUFVLENBQUM7Z0JBQzVDLEdBQUcsT0FBTyxDQUFDLGFBQWE7YUFDekIsQ0FBQyxDQUFDO1NBQ0o7SUFDSCxDQUFDO0lBRU8sNEJBQTRCLENBQUMsT0FBNEI7UUFDL0QsTUFBTSxXQUFXLEdBQUcsSUFBSSxDQUFDLElBQUksQ0FBQyxPQUFPLCtCQUFvQixFQUFFLEVBQUU7WUFDM0QsR0FBRyxFQUFFLFdBQUksQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLE1BQU0sRUFBRSxPQUFPLENBQUMsT0FBTyxDQUFDO1NBQ2hELENBQUMsQ0FBQztRQUVILEtBQUssTUFBTSxVQUFVLElBQUksV0FBVyxFQUFFO1lBQ3BDLElBQUksa0JBQWUsQ0FBQyxJQUFJLENBQUMsT0FBTyxFQUFFO2dCQUNoQyxVQUFVLEVBQUUsV0FBSSxDQUFDLE9BQU8sQ0FBQyxPQUFPLEVBQUUsVUFBVSxDQUFDO2dCQUM3QyxZQUFZLEVBQUUsT0FBTyxDQUFDLFlBQVk7YUFDbkMsQ0FBQyxDQUFDO1NBQ0o7SUFDSCxDQUFDOztBQWxDSCxvQ0FvQ0MiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBqb2luIH0gZnJvbSAncGF0aCc7XG5pbXBvcnQgKiBhcyBnbG9iIGZyb20gJ2dsb2InO1xuaW1wb3J0IHsgSW50ZWdyYXRpb25UZXN0IH0gZnJvbSAnLic7XG5pbXBvcnQgeyBDb21wb25lbnQgfSBmcm9tICcuLi9jb21wb25lbnQnO1xuaW1wb3J0IHsgUHJvamVjdCB9IGZyb20gJy4uL3Byb2plY3QnO1xuaW1wb3J0IHsgVFlQRVNDUklQVF9JTlRFR19FWFQsIFRZUEVTQ1JJUFRfTEFNQkRBX0VYVCB9IGZyb20gJy4vaW50ZXJuYWwnO1xuaW1wb3J0IHsgTGFtYmRhRnVuY3Rpb24sIExhbWJkYUZ1bmN0aW9uQ29tbW9uT3B0aW9ucyB9IGZyb20gJy4vbGFtYmRhLWZ1bmN0aW9uJztcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbmV4cG9ydCBpbnRlcmZhY2UgQXV0b0Rpc2NvdmVyT3B0aW9ucyB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSBsYW1iZGFPcHRpb25zPzogTGFtYmRhRnVuY3Rpb25Db21tb25PcHRpb25zO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHNyY2Rpcjogc3RyaW5nO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHRlc3RkaXI6IHN0cmluZztcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHRzY29uZmlnUGF0aDogc3RyaW5nO1xufVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG5leHBvcnQgY2xhc3MgQXV0b0Rpc2NvdmVyIGV4dGVuZHMgQ29tcG9uZW50IHtcblxuXG4gIGNvbnN0cnVjdG9yKHByb2plY3Q6IFByb2plY3QsIG9wdGlvbnM6IEF1dG9EaXNjb3Zlck9wdGlvbnMpIHtcbiAgICBzdXBlcihwcm9qZWN0KTtcblxuICAgIHRoaXMuYXV0b0Rpc2NvdmVyTGFtYmRhRnVuY3Rpb25zKG9wdGlvbnMpO1xuICAgIHRoaXMuYXV0b0Rpc2NvdmVySW50ZWdyYXRpb25UZXN0cyhvcHRpb25zKTtcbiAgfVxuXG4gIHByaXZhdGUgYXV0b0Rpc2NvdmVyTGFtYmRhRnVuY3Rpb25zKG9wdGlvbnM6IEF1dG9EaXNjb3Zlck9wdGlvbnMpIHtcbiAgICBjb25zdCBlbnRyeXBvaW50cyA9IGdsb2Iuc3luYyhgKiovKiR7VFlQRVNDUklQVF9MQU1CREFfRVhUfWAsIHtcbiAgICAgIGN3ZDogam9pbih0aGlzLnByb2plY3Qub3V0ZGlyLCBvcHRpb25zLnNyY2RpciksXG4gICAgfSk7XG5cbiAgICBmb3IgKGNvbnN0IGVudHJ5cG9pbnQgb2YgZW50cnlwb2ludHMpIHtcbiAgICAgIG5ldyBMYW1iZGFGdW5jdGlvbih0aGlzLnByb2plY3QsIHtcbiAgICAgICAgZW50cnlwb2ludDogam9pbihvcHRpb25zLnNyY2RpciwgZW50cnlwb2ludCksXG4gICAgICAgIC4uLm9wdGlvbnMubGFtYmRhT3B0aW9ucyxcbiAgICAgIH0pO1xuICAgIH1cbiAgfVxuXG4gIHByaXZhdGUgYXV0b0Rpc2NvdmVySW50ZWdyYXRpb25UZXN0cyhvcHRpb25zOiBBdXRvRGlzY292ZXJPcHRpb25zKSB7XG4gICAgY29uc3QgZW50cnlwb2ludHMgPSBnbG9iLnN5bmMoYCoqLyoke1RZUEVTQ1JJUFRfSU5URUdfRVhUfWAsIHtcbiAgICAgIGN3ZDogam9pbih0aGlzLnByb2plY3Qub3V0ZGlyLCBvcHRpb25zLnRlc3RkaXIpLFxuICAgIH0pO1xuXG4gICAgZm9yIChjb25zdCBlbnRyeXBvaW50IG9mIGVudHJ5cG9pbnRzKSB7XG4gICAgICBuZXcgSW50ZWdyYXRpb25UZXN0KHRoaXMucHJvamVjdCwge1xuICAgICAgICBlbnRyeXBvaW50OiBqb2luKG9wdGlvbnMudGVzdGRpciwgZW50cnlwb2ludCksXG4gICAgICAgIHRzY29uZmlnUGF0aDogb3B0aW9ucy50c2NvbmZpZ1BhdGgsXG4gICAgICB9KTtcbiAgICB9XG4gIH1cblxufSJdfQ==
|
|
@@ -115,7 +115,7 @@ class AwsCdkTypeScriptApp extends typescript_1.TypeScriptAppProject {
|
|
|
115
115
|
}
|
|
116
116
|
exports.AwsCdkTypeScriptApp = AwsCdkTypeScriptApp;
|
|
117
117
|
_a = JSII_RTTI_SYMBOL_1;
|
|
118
|
-
AwsCdkTypeScriptApp[_a] = { fqn: "projen.awscdk.AwsCdkTypeScriptApp", version: "0.
|
|
118
|
+
AwsCdkTypeScriptApp[_a] = { fqn: "projen.awscdk.AwsCdkTypeScriptApp", version: "0.39.0" };
|
|
119
119
|
class SampleCode extends component_1.Component {
|
|
120
120
|
constructor(project, cdkMajorVersion) {
|
|
121
121
|
super(project);
|
|
@@ -9,7 +9,7 @@ export interface AwsCdkConstructLibraryOptions extends ConstructLibraryOptions {
|
|
|
9
9
|
/**
|
|
10
10
|
* (experimental) Minimum target version this library is tested against.
|
|
11
11
|
*
|
|
12
|
-
* @default "
|
|
12
|
+
* @default "2.0.0"
|
|
13
13
|
* @experimental
|
|
14
14
|
* @featured true
|
|
15
15
|
*/
|
|
@@ -21,9 +21,8 @@ export interface AwsCdkConstructLibraryOptions extends ConstructLibraryOptions {
|
|
|
21
21
|
* - For CDK 2.x, the default is "10.0.5"
|
|
22
22
|
* - Otherwise, the default is "*"
|
|
23
23
|
*
|
|
24
|
-
* @default - When the default behavior is used, the dependency on `constructs` will
|
|
25
|
-
* be added as a `peerDependency
|
|
26
|
-
* added, set to the exact version configrued here.
|
|
24
|
+
* @default - When the default behavior is used, the dependency on `constructs` will
|
|
25
|
+
* be added as both a `peerDependency` and a `devDependency`.
|
|
27
26
|
* @experimental
|
|
28
27
|
*/
|
|
29
28
|
readonly constructsVersion?: string;
|
|
@@ -38,14 +37,13 @@ export interface AwsCdkConstructLibraryOptions extends ConstructLibraryOptions {
|
|
|
38
37
|
*/
|
|
39
38
|
readonly cdkVersionPinning?: boolean;
|
|
40
39
|
/**
|
|
41
|
-
* (
|
|
40
|
+
* (deprecated) Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed?
|
|
42
41
|
*
|
|
43
|
-
* @
|
|
44
|
-
* @featured true
|
|
42
|
+
* @deprecated - For CDK 2.x use 'peerDeps' instead
|
|
45
43
|
*/
|
|
46
44
|
readonly cdkDependencies?: string[];
|
|
47
45
|
/**
|
|
48
|
-
* (
|
|
46
|
+
* (deprecated) If this is enabled (default), all modules declared in `cdkDependencies` will be also added as normal `dependencies` (as well as `peerDependencies`).
|
|
49
47
|
*
|
|
50
48
|
* This is to ensure that downstream consumers actually have your CDK dependencies installed
|
|
51
49
|
* when using npm < 7 or yarn, where peer dependencies are not automatically installed.
|
|
@@ -53,20 +51,30 @@ export interface AwsCdkConstructLibraryOptions extends ConstructLibraryOptions {
|
|
|
53
51
|
* they are present during development.
|
|
54
52
|
*
|
|
55
53
|
* @default true
|
|
56
|
-
* @
|
|
54
|
+
* @deprecated - Not used for CDK 2.x
|
|
57
55
|
*/
|
|
58
56
|
readonly cdkDependenciesAsDeps?: boolean;
|
|
59
57
|
/**
|
|
60
|
-
* (
|
|
58
|
+
* (deprecated) Install the @aws-cdk/assert library?
|
|
61
59
|
*
|
|
62
|
-
* @default
|
|
63
|
-
* @
|
|
60
|
+
* @default false
|
|
61
|
+
* @deprecated - use cdkAssertions instead
|
|
64
62
|
*/
|
|
65
63
|
readonly cdkAssert?: boolean;
|
|
66
64
|
/**
|
|
67
|
-
* (experimental)
|
|
65
|
+
* (experimental) Install the @aws-cdk/assertions library?
|
|
68
66
|
*
|
|
67
|
+
* Only needed for CDK 1.x. If using CDK 2.x then
|
|
68
|
+
* assertions is already included in 'aws-cdk-lib'
|
|
69
|
+
*
|
|
70
|
+
* @default true
|
|
69
71
|
* @experimental
|
|
72
|
+
*/
|
|
73
|
+
readonly cdkAssertions?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* (deprecated) AWS CDK modules required for testing.
|
|
76
|
+
*
|
|
77
|
+
* @deprecated - For CDK 2.x use 'devDeps' instead
|
|
70
78
|
* @featured true
|
|
71
79
|
*/
|
|
72
80
|
readonly cdkTestDependencies?: string[];
|