projen 0.42.0 → 0.42.1

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.
Files changed (106) hide show
  1. package/.jsii +182 -372
  2. package/API.md +32 -165
  3. package/lib/awscdk/auto-discover.d.ts +0 -7
  4. package/lib/awscdk/auto-discover.js +4 -5
  5. package/lib/awscdk/awscdk-app-ts.d.ts +28 -7
  6. package/lib/awscdk/awscdk-app-ts.js +37 -30
  7. package/lib/awscdk/awscdk-construct.d.ts +93 -13
  8. package/lib/awscdk/awscdk-construct.js +87 -49
  9. package/lib/awscdk/cdk-config.js +1 -1
  10. package/lib/awscdk/cdk-tasks.js +1 -1
  11. package/lib/awscdk/index.d.ts +0 -1
  12. package/lib/awscdk/index.js +1 -2
  13. package/lib/awscdk/integration-test.js +1 -1
  14. package/lib/awscdk/java-app.js +1 -1
  15. package/lib/awscdk/lambda-function.d.ts +1 -8
  16. package/lib/awscdk/lambda-function.js +5 -14
  17. package/lib/cdk/construct-lib.js +1 -1
  18. package/lib/cdk/jsii-docgen.js +1 -1
  19. package/lib/cdk/jsii-project.js +1 -1
  20. package/lib/cdk8s/cdk8s-app-ts.js +1 -1
  21. package/lib/cdk8s/cdk8s-construct.js +1 -1
  22. package/lib/cdktf/cdktf-construct.js +1 -1
  23. package/lib/component.js +1 -1
  24. package/lib/dependencies.js +1 -1
  25. package/lib/dev-env.js +1 -1
  26. package/lib/docker-compose.js +2 -2
  27. package/lib/file.js +1 -1
  28. package/lib/gitattributes.js +1 -1
  29. package/lib/github/auto-approve.js +1 -1
  30. package/lib/github/auto-merge.js +1 -1
  31. package/lib/github/dependabot.js +1 -1
  32. package/lib/github/github-project.js +1 -1
  33. package/lib/github/github.js +1 -1
  34. package/lib/github/mergify.js +1 -1
  35. package/lib/github/pr-template.js +1 -1
  36. package/lib/github/pull-request-lint.js +1 -1
  37. package/lib/github/stale.js +1 -1
  38. package/lib/github/task-workflow.js +1 -1
  39. package/lib/github/workflows.js +1 -1
  40. package/lib/gitpod.js +1 -1
  41. package/lib/ignore-file.js +1 -1
  42. package/lib/ini.js +1 -1
  43. package/lib/java/java-project.js +1 -1
  44. package/lib/java/junit.js +1 -1
  45. package/lib/java/maven-compile.js +1 -1
  46. package/lib/java/maven-packaging.js +1 -1
  47. package/lib/java/maven-sample.js +1 -1
  48. package/lib/java/pom.js +1 -1
  49. package/lib/java/projenrc.js +1 -1
  50. package/lib/javascript/bundler.js +1 -1
  51. package/lib/javascript/eslint.js +1 -1
  52. package/lib/javascript/jest.js +1 -1
  53. package/lib/javascript/node-package.js +1 -1
  54. package/lib/javascript/node-project.js +1 -1
  55. package/lib/javascript/npm-config.js +1 -1
  56. package/lib/javascript/projenrc.js +1 -1
  57. package/lib/javascript/typescript-config.js +1 -1
  58. package/lib/javascript/upgrade-dependencies.js +2 -2
  59. package/lib/json.js +1 -1
  60. package/lib/license.js +1 -1
  61. package/lib/logger.js +1 -1
  62. package/lib/makefile.js +1 -1
  63. package/lib/object-file.js +1 -1
  64. package/lib/project-build.js +1 -1
  65. package/lib/project.js +1 -1
  66. package/lib/projects.js +1 -1
  67. package/lib/projenrc-json.js +1 -1
  68. package/lib/python/pip.js +1 -1
  69. package/lib/python/poetry.js +2 -2
  70. package/lib/python/projenrc.js +1 -1
  71. package/lib/python/pytest.js +1 -1
  72. package/lib/python/python-project.js +1 -1
  73. package/lib/python/python-sample.js +1 -1
  74. package/lib/python/requirements-file.js +1 -1
  75. package/lib/python/setuppy.js +1 -1
  76. package/lib/python/setuptools.js +1 -1
  77. package/lib/python/venv.js +1 -1
  78. package/lib/readme.js +1 -1
  79. package/lib/release/publisher.js +1 -1
  80. package/lib/release/release-trigger.js +1 -1
  81. package/lib/release/release.js +1 -1
  82. package/lib/sample-file.js +2 -2
  83. package/lib/semver.js +1 -1
  84. package/lib/source-code.js +1 -1
  85. package/lib/task-runtime.js +1 -1
  86. package/lib/task.js +1 -1
  87. package/lib/tasks.js +1 -1
  88. package/lib/testing.js +1 -1
  89. package/lib/textfile.js +1 -1
  90. package/lib/toml.js +1 -1
  91. package/lib/typescript/projenrc.js +1 -1
  92. package/lib/typescript/typescript-typedoc.js +1 -1
  93. package/lib/typescript/typescript.js +3 -3
  94. package/lib/version.js +1 -1
  95. package/lib/vscode/devcontainer.js +1 -1
  96. package/lib/vscode/launch-config.js +1 -1
  97. package/lib/vscode/vscode.js +1 -1
  98. package/lib/web/next.js +3 -3
  99. package/lib/web/postcss.js +1 -1
  100. package/lib/web/react.js +4 -4
  101. package/lib/web/tailwind.js +1 -1
  102. package/lib/xmlfile.js +1 -1
  103. package/lib/yaml.js +1 -1
  104. package/package.json +1 -1
  105. package/lib/awscdk/awscdk-deps.d.ts +0 -157
  106. package/lib/awscdk/awscdk-deps.js +0 -163
package/API.md CHANGED
@@ -39,7 +39,6 @@ Name|Description
39
39
  [YamlFile](#projen-yamlfile)|Represents a YAML file.
40
40
  [awscdk.AutoDiscover](#projen-awscdk-autodiscover)|Automatically creates a `LambdaFunction` for all `.lambda.ts` files under the source directory of the project.
41
41
  [awscdk.AwsCdkConstructLibrary](#projen-awscdk-awscdkconstructlibrary)|AWS CDK construct library project.
42
- [awscdk.AwsCdkDeps](#projen-awscdk-awscdkdeps)|Manages dependencies on the AWS CDK.
43
42
  [awscdk.AwsCdkJavaApp](#projen-awscdk-awscdkjavaapp)|AWS CDK app in Java.
44
43
  [awscdk.AwsCdkTypeScriptApp](#projen-awscdk-awscdktypescriptapp)|AWS CDK app in TypeScript.
45
44
  [awscdk.CdkConfig](#projen-awscdk-cdkconfig)|Represents cdk.json file.
@@ -163,9 +162,7 @@ Name|Description
163
162
  [XmlFileOptions](#projen-xmlfileoptions)|Options for `XmlFile`.
164
163
  [YamlFileOptions](#projen-yamlfileoptions)|Options for `JsonFile`.
165
164
  [awscdk.AutoDiscoverOptions](#projen-awscdk-autodiscoveroptions)|Options for `AutoDiscover`.
166
- [awscdk.AwsCdkConstructLibraryOptions](#projen-awscdk-awscdkconstructlibraryoptions)|Options for `AwsCdkConstructLibrary`.
167
- [awscdk.AwsCdkDepsCommonOptions](#projen-awscdk-awscdkdepscommonoptions)|Options for `AwsCdkDeps`.
168
- [awscdk.AwsCdkDepsOptions](#projen-awscdk-awscdkdepsoptions)|*No description*
165
+ [awscdk.AwsCdkConstructLibraryOptions](#projen-awscdk-awscdkconstructlibraryoptions)|Options for the construct-lib-aws project.
169
166
  [awscdk.AwsCdkJavaAppOptions](#projen-awscdk-awscdkjavaappoptions)|*No description*
170
167
  [awscdk.AwsCdkTypeScriptAppOptions](#projen-awscdk-awscdktypescriptappoptions)|*No description*
171
168
  [awscdk.CdkConfigCommonOptions](#projen-awscdk-cdkconfigcommonoptions)|Common options for `cdk.json`.
@@ -2855,7 +2852,6 @@ new awscdk.AutoDiscover(project: Project, options: AutoDiscoverOptions)
2855
2852
 
2856
2853
  * **project** (<code>[Project](#projen-project)</code>) *No description*
2857
2854
  * **options** (<code>[awscdk.AutoDiscoverOptions](#projen-awscdk-autodiscoveroptions)</code>) *No description*
2858
- * **cdkDeps** (<code>[awscdk.AwsCdkDeps](#projen-awscdk-awscdkdeps)</code>) AWS CDK dependency manager.
2859
2855
  * **srcdir** (<code>string</code>) Project source tree (relative to project output directory).
2860
2856
  * **testdir** (<code>string</code>) Test source tree.
2861
2857
  * **tsconfigPath** (<code>string</code>) Path to the tsconfig file to use for integration tests.
@@ -3023,14 +3019,14 @@ new awscdk.AwsCdkConstructLibrary(options: AwsCdkConstructLibraryOptions)
3023
3019
  * **python** (<code>[cdk.JsiiPythonTarget](#projen-cdk-jsiipythontarget)</code>) *No description* __*Optional*__
3024
3020
  * **rootdir** (<code>string</code>) *No description* __*Default*__: "."
3025
3021
  * **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
3026
- * **cdkVersion** (<code>string</code>) Semantic version requirement for the the AWS CDK libraries.
3022
+ * **cdkVersion** (<code>string</code>) Minimum target version this library is tested against.
3027
3023
  * **cdkAssert** (<code>boolean</code>) Install the @aws-cdk/assert library? __*Default*__: false
3028
3024
  * **cdkAssertions** (<code>boolean</code>) Install the @aws-cdk/assertions library? __*Default*__: true
3029
3025
  * **cdkDependencies** (<code>Array<string></code>) Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed? __*Optional*__
3030
3026
  * **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
3031
3027
  * **cdkTestDependencies** (<code>Array<string></code>) AWS CDK modules required for testing. __*Optional*__
3032
- * **cdkVersionPinning** (<code>boolean</code>) Use pinned version instead of caret version for CDK. __*Optional*__
3033
- * **constructsVersion** (<code>string</code>) Semantic version requirement for the `constructs` library. __*Default*__: for CDK 1.x the default is "^3.2.27", for CDK 2.x the default is "^10.0.5".
3028
+ * **cdkVersionPinning** (<code>boolean</code>) Use pinned version instead of caret version for CDK. __*Default*__: false
3029
+ * **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`.
3034
3030
  * **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
3035
3031
  * **lambdaOptions** (<code>[awscdk.LambdaFunctionCommonOptions](#projen-awscdk-lambdafunctioncommonoptions)</code>) Common options for all AWS Lambda functions. __*Default*__: default options
3036
3032
 
@@ -3041,18 +3037,24 @@ new awscdk.AwsCdkConstructLibrary(options: AwsCdkConstructLibraryOptions)
3041
3037
 
3042
3038
  Name | Type | Description
3043
3039
  -----|------|-------------
3044
- **cdkDeps**🔹 | <code>[awscdk.AwsCdkDeps](#projen-awscdk-awscdkdeps)</code> | <span></span>
3040
+ **cdkDependenciesAsDeps**🔹 | <code>boolean</code> | Whether CDK dependencies are added as normal dependencies (and peer dependencies).
3045
3041
  **cdkVersion**🔹 | <code>string</code> | The target CDK version for this library.
3046
3042
  **version**⚠️ | <code>string</code> | <span></span>
3047
3043
 
3048
3044
  ### Methods
3049
3045
 
3050
3046
 
3051
- #### addCdkDependencies(...deps)⚠️ <a id="projen-awscdk-awscdkconstructlibrary-addcdkdependencies"></a>
3047
+ #### addCdkDependencies(...deps)🔹 <a id="projen-awscdk-awscdkconstructlibrary-addcdkdependencies"></a>
3052
3048
 
3053
- Adds dependencies to AWS CDK modules.
3049
+ Adds CDK modules as runtime dependencies.
3054
3050
 
3055
- Since this is a library project, dependencies will be added as peer dependencies.
3051
+ Modules are currently by default added with a caret CDK version both as "dependencies"
3052
+ and "peerDependencies". This is because currently npm would not
3053
+ automatically install peer dependencies that are not declared as concerete
3054
+ dependencies by the consumer, so this is a little npm "hack" so that
3055
+ consumers will not need to depend on them directly if they don't interact
3056
+ with them.
3057
+ See `cdkDependenciesAsDeps` for changing the default behavior.
3056
3058
 
3057
3059
  ```ts
3058
3060
  addCdkDependencies(...deps: string[]): void
@@ -3063,9 +3065,9 @@ addCdkDependencies(...deps: string[]): void
3063
3065
 
3064
3066
 
3065
3067
 
3066
- #### addCdkTestDependencies(...deps)⚠️ <a id="projen-awscdk-awscdkconstructlibrary-addcdktestdependencies"></a>
3068
+ #### addCdkTestDependencies(...deps)🔹 <a id="projen-awscdk-awscdkconstructlibrary-addcdktestdependencies"></a>
3067
3069
 
3068
- Adds AWS CDK modules as dev dependencies.
3070
+ Adds CDK modules as test dependencies.
3069
3071
 
3070
3072
  ```ts
3071
3073
  addCdkTestDependencies(...deps: string[]): void
@@ -3078,86 +3080,6 @@ addCdkTestDependencies(...deps: string[]): void
3078
3080
 
3079
3081
 
3080
3082
 
3081
- ## class AwsCdkDeps 🔹 <a id="projen-awscdk-awscdkdeps"></a>
3082
-
3083
- Manages dependencies on the AWS CDK.
3084
-
3085
- __Submodule__: awscdk
3086
-
3087
- __Extends__: [Component](#projen-component)
3088
-
3089
- ### Initializer
3090
-
3091
-
3092
-
3093
-
3094
- ```ts
3095
- new awscdk.AwsCdkDeps(project: Project, options: AwsCdkDepsOptions)
3096
- ```
3097
-
3098
- * **project** (<code>[Project](#projen-project)</code>) *No description*
3099
- * **options** (<code>[awscdk.AwsCdkDepsOptions](#projen-awscdk-awscdkdepsoptions)</code>) *No description*
3100
- * **cdkVersion** (<code>string</code>) Semantic version requirement for the the AWS CDK libraries.
3101
- * **cdkAssert** (<code>boolean</code>) Install the @aws-cdk/assert library? __*Default*__: false
3102
- * **cdkAssertions** (<code>boolean</code>) Install the @aws-cdk/assertions library? __*Default*__: true
3103
- * **cdkDependencies** (<code>Array<string></code>) Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed? __*Optional*__
3104
- * **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
3105
- * **cdkTestDependencies** (<code>Array<string></code>) AWS CDK modules required for testing. __*Optional*__
3106
- * **cdkVersionPinning** (<code>boolean</code>) Use pinned version instead of caret version for CDK. __*Optional*__
3107
- * **constructsVersion** (<code>string</code>) Semantic version requirement for the `constructs` library. __*Default*__: for CDK 1.x the default is "^3.2.27", for CDK 2.x the default is "^10.0.5".
3108
- * **dependencyType** (<code>[DependencyType](#projen-dependencytype)</code>) The type of dependency to use for runtime AWS CDK and `constructs` modules.
3109
-
3110
-
3111
-
3112
- ### Properties
3113
-
3114
-
3115
- Name | Type | Description
3116
- -----|------|-------------
3117
- **cdkDependenciesAsDeps**⚠️ | <code>boolean</code> | Whether CDK dependencies are added as normal dependencies (and peer dependencies).
3118
- **cdkMajorVersion**🔹 | <code>number</code> | The major version of the AWX CDK (e.g. 1, 2, ...).
3119
- **cdkVersion**🔹 | <code>string</code> | The dependency requirement for AWS CDK (e.g. `^2.0.0`).
3120
- **constructsVersion**🔹 | <code>string</code> | The semantic version requirement of `constructs`.
3121
-
3122
- ### Methods
3123
-
3124
-
3125
- #### addV1Dependencies(...deps)🔹 <a id="projen-awscdk-awscdkdeps-addv1dependencies"></a>
3126
-
3127
- Adds dependencies to AWS CDK modules.
3128
-
3129
- The type of dependency is determined by the `dependencyType` option.
3130
-
3131
- This method is not supported in CDK v2. Use `project.addPeerDeps()` or
3132
- `project.addDeps()` as appropriate.
3133
-
3134
- ```ts
3135
- addV1Dependencies(...deps: string[]): void
3136
- ```
3137
-
3138
- * **deps** (<code>string</code>) names of cdk modules (e.g. `@aws-cdk/aws-lambda`).
3139
-
3140
-
3141
-
3142
-
3143
- #### addV1DevDependencies(...deps)🔹 <a id="projen-awscdk-awscdkdeps-addv1devdependencies"></a>
3144
-
3145
- Adds AWS CDK modules as dev dependencies.
3146
-
3147
- This method is not supported in CDK v2. Use `project.addPeerDeps()` or
3148
- `project.addDeps()` as appropriate.
3149
-
3150
- ```ts
3151
- addV1DevDependencies(...deps: string[]): void
3152
- ```
3153
-
3154
- * **deps** (<code>string</code>) names of cdk modules (e.g. `@aws-cdk/aws-lambda`).
3155
-
3156
-
3157
-
3158
-
3159
-
3160
-
3161
3083
  ## class AwsCdkJavaApp 🔹 <a id="projen-awscdk-awscdkjavaapp"></a>
3162
3084
 
3163
3085
  AWS CDK app in Java.
@@ -3405,15 +3327,10 @@ new awscdk.AwsCdkTypeScriptApp(options: AwsCdkTypeScriptAppOptions)
3405
3327
  * **requireApproval** (<code>[awscdk.ApprovalLevel](#projen-awscdk-approvallevel)</code>) To protect you against unintended changes that affect your security posture, the AWS CDK Toolkit prompts you to approve security-related changes before deploying them. __*Default*__: ApprovalLevel.BROADENING
3406
3328
  * **watchExcludes** (<code>Array<string></code>) Glob patterns to exclude from `cdk watch`. __*Default*__: []
3407
3329
  * **watchIncludes** (<code>Array<string></code>) Glob patterns to include in `cdk watch`. __*Default*__: []
3408
- * **cdkVersion** (<code>string</code>) Semantic version requirement for the the AWS CDK libraries.
3409
- * **cdkAssert** (<code>boolean</code>) Install the @aws-cdk/assert library? __*Default*__: false
3410
- * **cdkAssertions** (<code>boolean</code>) Install the @aws-cdk/assertions library? __*Default*__: true
3411
- * **cdkDependencies** (<code>Array<string></code>) Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed? __*Optional*__
3412
- * **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
3413
- * **cdkTestDependencies** (<code>Array<string></code>) AWS CDK modules required for testing. __*Optional*__
3414
- * **cdkVersionPinning** (<code>boolean</code>) Use pinned version instead of caret version for CDK. __*Optional*__
3415
- * **constructsVersion** (<code>string</code>) Semantic version requirement for the `constructs` library. __*Default*__: for CDK 1.x the default is "^3.2.27", for CDK 2.x the default is "^10.0.5".
3330
+ * **cdkVersion** (<code>string</code>) AWS CDK version to use.
3416
3331
  * **appEntrypoint** (<code>string</code>) The CDK app's entrypoint (relative to the source directory, which is "src" by default). __*Default*__: "main.ts"
3332
+ * **cdkDependencies** (<code>Array<string></code>) Which AWS CDK modules (those that start with "@aws-cdk/") this app uses. __*Optional*__
3333
+ * **cdkVersionPinning** (<code>boolean</code>) Use pinned version instead of caret version for CDK. __*Default*__: false
3417
3334
  * **lambdaAutoDiscover** (<code>boolean</code>) Automatically adds an `awscdk.LambdaFunction` for each `.lambda.ts` handler in your source tree. If this is disabled, you can manually add an `awscdk.AutoDiscover` component to your project. __*Default*__: true
3418
3335
  * **lambdaOptions** (<code>[awscdk.LambdaFunctionCommonOptions](#projen-awscdk-lambdafunctioncommonoptions)</code>) Common options for all AWS Lambda functions. __*Default*__: default options
3419
3336
 
@@ -3426,7 +3343,6 @@ Name | Type | Description
3426
3343
  -----|------|-------------
3427
3344
  **appEntrypoint**🔹 | <code>string</code> | The CDK app entrypoint.
3428
3345
  **cdkConfig**🔹 | <code>[awscdk.CdkConfig](#projen-awscdk-cdkconfig)</code> | cdk.json configuration.
3429
- **cdkDeps**🔹 | <code>[awscdk.AwsCdkDeps](#projen-awscdk-awscdkdeps)</code> | <span></span>
3430
3346
  **cdkTasks**🔹 | <code>[awscdk.CdkTasks](#projen-awscdk-cdktasks)</code> | Common CDK tasks.
3431
3347
  **cdkVersion**🔹 | <code>string</code> | The CDK version this app is using.
3432
3348
 
@@ -3677,14 +3593,14 @@ new awscdk.ConstructLibraryAws(options: AwsCdkConstructLibraryOptions)
3677
3593
  * **python** (<code>[cdk.JsiiPythonTarget](#projen-cdk-jsiipythontarget)</code>) *No description* __*Optional*__
3678
3594
  * **rootdir** (<code>string</code>) *No description* __*Default*__: "."
3679
3595
  * **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
3680
- * **cdkVersion** (<code>string</code>) Semantic version requirement for the the AWS CDK libraries.
3596
+ * **cdkVersion** (<code>string</code>) Minimum target version this library is tested against.
3681
3597
  * **cdkAssert** (<code>boolean</code>) Install the @aws-cdk/assert library? __*Default*__: false
3682
3598
  * **cdkAssertions** (<code>boolean</code>) Install the @aws-cdk/assertions library? __*Default*__: true
3683
3599
  * **cdkDependencies** (<code>Array<string></code>) Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed? __*Optional*__
3684
3600
  * **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
3685
3601
  * **cdkTestDependencies** (<code>Array<string></code>) AWS CDK modules required for testing. __*Optional*__
3686
- * **cdkVersionPinning** (<code>boolean</code>) Use pinned version instead of caret version for CDK. __*Optional*__
3687
- * **constructsVersion** (<code>string</code>) Semantic version requirement for the `constructs` library. __*Default*__: for CDK 1.x the default is "^3.2.27", for CDK 2.x the default is "^10.0.5".
3602
+ * **cdkVersionPinning** (<code>boolean</code>) Use pinned version instead of caret version for CDK. __*Default*__: false
3603
+ * **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`.
3688
3604
  * **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
3689
3605
  * **lambdaOptions** (<code>[awscdk.LambdaFunctionCommonOptions](#projen-awscdk-lambdafunctioncommonoptions)</code>) Common options for all AWS Lambda functions. __*Default*__: default options
3690
3606
 
@@ -3760,7 +3676,6 @@ new awscdk.LambdaFunction(project: Project, options: LambdaFunctionOptions)
3760
3676
  * **options** (<code>[awscdk.LambdaFunctionOptions](#projen-awscdk-lambdafunctionoptions)</code>) Options.
3761
3677
  * **bundlingOptions** (<code>[javascript.BundlingOptions](#projen-javascript-bundlingoptions)</code>) Bundling options for this AWS Lambda function. __*Default*__: defaults
3762
3678
  * **runtime** (<code>[awscdk.LambdaRuntime](#projen-awscdk-lambdaruntime)</code>) The node.js version to target. __*Default*__: Runtime.NODEJS_14_X
3763
- * **cdkDeps** (<code>[awscdk.AwsCdkDeps](#projen-awscdk-awscdkdeps)</code>) AWS CDK dependency manager.
3764
3679
  * **entrypoint** (<code>string</code>) A path from the project root directory to a TypeScript file which contains the AWS Lambda handler entrypoint (exports a `handler` function).
3765
3680
  * **constructFile** (<code>string</code>) The name of the generated TypeScript source file. __*Default*__: The name of the entrypoint file, with the `-function.ts` suffix instead of `.lambda.ts`.
3766
3681
  * **constructName** (<code>string</code>) The name of the generated `lambda.Function` subclass. __*Default*__: A pascal cased version of the name of the entrypoint file, with the extension `Function` (e.g. `ResizeImageFunction`).
@@ -10089,7 +10004,6 @@ Options for `AutoDiscover`.
10089
10004
 
10090
10005
  Name | Type | Description
10091
10006
  -----|------|-------------
10092
- **cdkDeps**🔹 | <code>[awscdk.AwsCdkDeps](#projen-awscdk-awscdkdeps)</code> | AWS CDK dependency manager.
10093
10007
  **srcdir**🔹 | <code>string</code> | Project source tree (relative to project output directory).
10094
10008
  **testdir**🔹 | <code>string</code> | Test source tree.
10095
10009
  **tsconfigPath**🔹 | <code>string</code> | Path to the tsconfig file to use for integration tests.
@@ -10100,7 +10014,7 @@ Name | Type | Description
10100
10014
  ## struct AwsCdkConstructLibraryOptions 🔹 <a id="projen-awscdk-awscdkconstructlibraryoptions"></a>
10101
10015
 
10102
10016
 
10103
- Options for `AwsCdkConstructLibrary`.
10017
+ Options for the construct-lib-aws project.
10104
10018
 
10105
10019
 
10106
10020
 
@@ -10108,7 +10022,7 @@ Name | Type | Description
10108
10022
  -----|------|-------------
10109
10023
  **author**🔹 | <code>string</code> | The name of the library author.
10110
10024
  **authorAddress**🔹 | <code>string</code> | Email or URL of the library author.
10111
- **cdkVersion**🔹 | <code>string</code> | Semantic version requirement for the the AWS CDK libraries.
10025
+ **cdkVersion**🔹 | <code>string</code> | Minimum target version this library is tested against.
10112
10026
  **defaultReleaseBranch**🔹 | <code>string</code> | The name of the main release branch.
10113
10027
  **name**🔹 | <code>string</code> | This is the name of your project.
10114
10028
  **repositoryUrl**🔹 | <code>string</code> | Git repository URL.
@@ -10134,14 +10048,14 @@ Name | Type | Description
10134
10048
  **cdkDependencies**?⚠️ | <code>Array<string></code> | Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed?<br/>__*Optional*__
10135
10049
  **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
10136
10050
  **cdkTestDependencies**?⚠️ | <code>Array<string></code> | AWS CDK modules required for testing.<br/>__*Optional*__
10137
- **cdkVersionPinning**?⚠️ | <code>boolean</code> | Use pinned version instead of caret version for CDK.<br/>__*Optional*__
10051
+ **cdkVersionPinning**?🔹 | <code>boolean</code> | Use pinned version instead of caret version for CDK.<br/>__*Default*__: false
10138
10052
  **clobber**?🔹 | <code>boolean</code> | Add a `clobber` task which resets the repo to origin.<br/>__*Default*__: true
10139
10053
  **codeArtifactOptions**?🔹 | <code>[javascript.CodeArtifactOptions](#projen-javascript-codeartifactoptions)</code> | Options for publishing npm package to AWS CodeArtifact.<br/>__*Default*__: undefined
10140
10054
  **codeCov**?🔹 | <code>boolean</code> | Define a GitHub workflow step for sending code coverage metrics to https://codecov.io/ Uses codecov/codecov-action@v1 A secret is required for private repos. Configured with @codeCovTokenSecret.<br/>__*Default*__: false
10141
10055
  **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
10142
10056
  **compat**?🔹 | <code>boolean</code> | Automatically run API compatibility test against the latest version published to npm after compilation.<br/>__*Default*__: false
10143
10057
  **compatIgnore**?🔹 | <code>string</code> | Name of the ignore file for API compatibility tests.<br/>__*Default*__: ".compatignore"
10144
- **constructsVersion**?🔹 | <code>string</code> | Semantic version requirement for the `constructs` library.<br/>__*Default*__: for CDK 1.x the default is "^3.2.27", for CDK 2.x the default is "^10.0.5".
10058
+ **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`.
10145
10059
  **copyrightOwner**?🔹 | <code>string</code> | License copyright owner.<br/>__*Default*__: defaults to the value of authorName or "" if `authorName` is undefined.
10146
10060
  **copyrightPeriod**?🔹 | <code>string</code> | The copyright years to put in the LICENSE file.<br/>__*Default*__: current year
10147
10061
  **dependabot**?🔹 | <code>boolean</code> | Use dependabot to handle dependency upgrades.<br/>__*Default*__: false
@@ -10256,47 +10170,6 @@ Name | Type | Description
10256
10170
 
10257
10171
 
10258
10172
 
10259
- ## struct AwsCdkDepsCommonOptions 🔹 <a id="projen-awscdk-awscdkdepscommonoptions"></a>
10260
-
10261
-
10262
- Options for `AwsCdkDeps`.
10263
-
10264
-
10265
-
10266
- Name | Type | Description
10267
- -----|------|-------------
10268
- **cdkVersion**🔹 | <code>string</code> | Semantic version requirement for the the AWS CDK libraries.
10269
- **cdkAssert**?⚠️ | <code>boolean</code> | Install the @aws-cdk/assert library?<br/>__*Default*__: false
10270
- **cdkAssertions**?🔹 | <code>boolean</code> | Install the @aws-cdk/assertions library?<br/>__*Default*__: true
10271
- **cdkDependencies**?⚠️ | <code>Array<string></code> | Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed?<br/>__*Optional*__
10272
- **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
10273
- **cdkTestDependencies**?⚠️ | <code>Array<string></code> | AWS CDK modules required for testing.<br/>__*Optional*__
10274
- **cdkVersionPinning**?⚠️ | <code>boolean</code> | Use pinned version instead of caret version for CDK.<br/>__*Optional*__
10275
- **constructsVersion**?🔹 | <code>string</code> | Semantic version requirement for the `constructs` library.<br/>__*Default*__: for CDK 1.x the default is "^3.2.27", for CDK 2.x the default is "^10.0.5".
10276
-
10277
-
10278
-
10279
- ## struct AwsCdkDepsOptions 🔹 <a id="projen-awscdk-awscdkdepsoptions"></a>
10280
-
10281
-
10282
-
10283
-
10284
-
10285
-
10286
- Name | Type | Description
10287
- -----|------|-------------
10288
- **cdkVersion**🔹 | <code>string</code> | Semantic version requirement for the the AWS CDK libraries.
10289
- **dependencyType**🔹 | <code>[DependencyType](#projen-dependencytype)</code> | The type of dependency to use for runtime AWS CDK and `constructs` modules.
10290
- **cdkAssert**?⚠️ | <code>boolean</code> | Install the @aws-cdk/assert library?<br/>__*Default*__: false
10291
- **cdkAssertions**?🔹 | <code>boolean</code> | Install the @aws-cdk/assertions library?<br/>__*Default*__: true
10292
- **cdkDependencies**?⚠️ | <code>Array<string></code> | Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed?<br/>__*Optional*__
10293
- **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
10294
- **cdkTestDependencies**?⚠️ | <code>Array<string></code> | AWS CDK modules required for testing.<br/>__*Optional*__
10295
- **cdkVersionPinning**?⚠️ | <code>boolean</code> | Use pinned version instead of caret version for CDK.<br/>__*Optional*__
10296
- **constructsVersion**?🔹 | <code>string</code> | Semantic version requirement for the `constructs` library.<br/>__*Default*__: for CDK 1.x the default is "^3.2.27", for CDK 2.x the default is "^10.0.5".
10297
-
10298
-
10299
-
10300
10173
  ## struct AwsCdkJavaAppOptions 🔹 <a id="projen-awscdk-awscdkjavaappoptions"></a>
10301
10174
 
10302
10175
 
@@ -10366,7 +10239,7 @@ Name | Type | Description
10366
10239
 
10367
10240
  Name | Type | Description
10368
10241
  -----|------|-------------
10369
- **cdkVersion**🔹 | <code>string</code> | Semantic version requirement for the the AWS CDK libraries.
10242
+ **cdkVersion**🔹 | <code>string</code> | AWS CDK version to use.
10370
10243
  **defaultReleaseBranch**🔹 | <code>string</code> | The name of the main release branch.
10371
10244
  **name**🔹 | <code>string</code> | This is the name of your project.
10372
10245
  **allowLibraryDependencies**?🔹 | <code>boolean</code> | Allow the project to include `peerDependencies` and `bundledDependencies`.<br/>__*Default*__: true
@@ -10387,18 +10260,13 @@ Name | Type | Description
10387
10260
  **buildWorkflow**?🔹 | <code>boolean</code> | Define a GitHub workflow for building PRs.<br/>__*Default*__: true if not a subproject
10388
10261
  **bundledDeps**?🔹 | <code>Array<string></code> | List of dependencies to bundle into this module.<br/>__*Optional*__
10389
10262
  **bundlerOptions**?🔹 | <code>[javascript.BundlerOptions](#projen-javascript-bundleroptions)</code> | Options for `Bundler`.<br/>__*Optional*__
10390
- **cdkAssert**?⚠️ | <code>boolean</code> | Install the @aws-cdk/assert library?<br/>__*Default*__: false
10391
- **cdkAssertions**?🔹 | <code>boolean</code> | Install the @aws-cdk/assertions library?<br/>__*Default*__: true
10392
- **cdkDependencies**?⚠️ | <code>Array<string></code> | Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed?<br/>__*Optional*__
10393
- **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
10394
- **cdkTestDependencies**?⚠️ | <code>Array<string></code> | AWS CDK modules required for testing.<br/>__*Optional*__
10395
- **cdkVersionPinning**?⚠️ | <code>boolean</code> | Use pinned version instead of caret version for CDK.<br/>__*Optional*__
10263
+ **cdkDependencies**?🔹 | <code>Array<string></code> | Which AWS CDK modules (those that start with "@aws-cdk/") this app uses.<br/>__*Optional*__
10264
+ **cdkVersionPinning**?🔹 | <code>boolean</code> | Use pinned version instead of caret version for CDK.<br/>__*Default*__: false
10396
10265
  **cdkout**?🔹 | <code>string</code> | cdk.out directory.<br/>__*Default*__: "cdk.out"
10397
10266
  **clobber**?🔹 | <code>boolean</code> | Add a `clobber` task which resets the repo to origin.<br/>__*Default*__: true
10398
10267
  **codeArtifactOptions**?🔹 | <code>[javascript.CodeArtifactOptions](#projen-javascript-codeartifactoptions)</code> | Options for publishing npm package to AWS CodeArtifact.<br/>__*Default*__: undefined
10399
10268
  **codeCov**?🔹 | <code>boolean</code> | Define a GitHub workflow step for sending code coverage metrics to https://codecov.io/ Uses codecov/codecov-action@v1 A secret is required for private repos. Configured with @codeCovTokenSecret.<br/>__*Default*__: false
10400
10269
  **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
10401
- **constructsVersion**?🔹 | <code>string</code> | Semantic version requirement for the `constructs` library.<br/>__*Default*__: for CDK 1.x the default is "^3.2.27", for CDK 2.x the default is "^10.0.5".
10402
10270
  **context**?🔹 | <code>Map<string, string></code> | Additional context to include in `cdk.json`.<br/>__*Default*__: no additional context
10403
10271
  **copyrightOwner**?🔹 | <code>string</code> | License copyright owner.<br/>__*Default*__: defaults to the value of authorName or "" if `authorName` is undefined.
10404
10272
  **copyrightPeriod**?🔹 | <code>string</code> | The copyright years to put in the LICENSE file.<br/>__*Default*__: current year
@@ -10560,7 +10428,7 @@ Name | Type | Description
10560
10428
  -----|------|-------------
10561
10429
  **author**⚠️ | <code>string</code> | The name of the library author.
10562
10430
  **authorAddress**⚠️ | <code>string</code> | Email or URL of the library author.
10563
- **cdkVersion**⚠️ | <code>string</code> | Semantic version requirement for the the AWS CDK libraries.
10431
+ **cdkVersion**⚠️ | <code>string</code> | Minimum target version this library is tested against.
10564
10432
  **defaultReleaseBranch**⚠️ | <code>string</code> | The name of the main release branch.
10565
10433
  **name**⚠️ | <code>string</code> | This is the name of your project.
10566
10434
  **repositoryUrl**⚠️ | <code>string</code> | Git repository URL.
@@ -10586,14 +10454,14 @@ Name | Type | Description
10586
10454
  **cdkDependencies**?⚠️ | <code>Array<string></code> | Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed?<br/>__*Optional*__
10587
10455
  **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
10588
10456
  **cdkTestDependencies**?⚠️ | <code>Array<string></code> | AWS CDK modules required for testing.<br/>__*Optional*__
10589
- **cdkVersionPinning**?⚠️ | <code>boolean</code> | Use pinned version instead of caret version for CDK.<br/>__*Optional*__
10457
+ **cdkVersionPinning**?⚠️ | <code>boolean</code> | Use pinned version instead of caret version for CDK.<br/>__*Default*__: false
10590
10458
  **clobber**?⚠️ | <code>boolean</code> | Add a `clobber` task which resets the repo to origin.<br/>__*Default*__: true
10591
10459
  **codeArtifactOptions**?⚠️ | <code>[javascript.CodeArtifactOptions](#projen-javascript-codeartifactoptions)</code> | Options for publishing npm package to AWS CodeArtifact.<br/>__*Default*__: undefined
10592
10460
  **codeCov**?⚠️ | <code>boolean</code> | Define a GitHub workflow step for sending code coverage metrics to https://codecov.io/ Uses codecov/codecov-action@v1 A secret is required for private repos. Configured with @codeCovTokenSecret.<br/>__*Default*__: false
10593
10461
  **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
10594
10462
  **compat**?⚠️ | <code>boolean</code> | Automatically run API compatibility test against the latest version published to npm after compilation.<br/>__*Default*__: false
10595
10463
  **compatIgnore**?⚠️ | <code>string</code> | Name of the ignore file for API compatibility tests.<br/>__*Default*__: ".compatignore"
10596
- **constructsVersion**?⚠️ | <code>string</code> | Semantic version requirement for the `constructs` library.<br/>__*Default*__: for CDK 1.x the default is "^3.2.27", for CDK 2.x the default is "^10.0.5".
10464
+ **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`.
10597
10465
  **copyrightOwner**?⚠️ | <code>string</code> | License copyright owner.<br/>__*Default*__: defaults to the value of authorName or "" if `authorName` is undefined.
10598
10466
  **copyrightPeriod**?⚠️ | <code>string</code> | The copyright years to put in the LICENSE file.<br/>__*Default*__: current year
10599
10467
  **dependabot**?⚠️ | <code>boolean</code> | Use dependabot to handle dependency upgrades.<br/>__*Default*__: false
@@ -10762,7 +10630,6 @@ Options for `Function`.
10762
10630
 
10763
10631
  Name | Type | Description
10764
10632
  -----|------|-------------
10765
- **cdkDeps**🔹 | <code>[awscdk.AwsCdkDeps](#projen-awscdk-awscdkdeps)</code> | AWS CDK dependency manager.
10766
10633
  **entrypoint**🔹 | <code>string</code> | A path from the project root directory to a TypeScript file which contains the AWS Lambda handler entrypoint (exports a `handler` function).
10767
10634
  **bundlingOptions**?🔹 | <code>[javascript.BundlingOptions](#projen-javascript-bundlingoptions)</code> | Bundling options for this AWS Lambda function.<br/>__*Default*__: defaults
10768
10635
  **constructFile**?🔹 | <code>string</code> | The name of the generated TypeScript source file.<br/>__*Default*__: The name of the entrypoint file, with the `-function.ts` suffix instead of `.lambda.ts`.
@@ -1,6 +1,5 @@
1
1
  import { Component } from '../component';
2
2
  import { Project } from '../project';
3
- import { AwsCdkDeps } from './awscdk-deps';
4
3
  import { LambdaFunctionCommonOptions } from './lambda-function';
5
4
  /**
6
5
  * (experimental) Options for `AutoDiscover`.
@@ -32,12 +31,6 @@ export interface AutoDiscoverOptions {
32
31
  * @experimental
33
32
  */
34
33
  readonly tsconfigPath: string;
35
- /**
36
- * (experimental) AWS CDK dependency manager.
37
- *
38
- * @experimental
39
- */
40
- readonly cdkDeps: AwsCdkDeps;
41
34
  }
42
35
  /**
43
36
  * (experimental) Automatically creates a `LambdaFunction` for all `.lambda.ts` files under the source directory of the project.
@@ -5,8 +5,8 @@ exports.AutoDiscover = void 0;
5
5
  const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
6
6
  const path_1 = require("path");
7
7
  const glob = require("glob");
8
+ const _1 = require(".");
8
9
  const component_1 = require("../component");
9
- const integration_test_1 = require("./integration-test");
10
10
  const internal_1 = require("./internal");
11
11
  const lambda_function_1 = require("./lambda-function");
12
12
  /**
@@ -30,7 +30,6 @@ class AutoDiscover extends component_1.Component {
30
30
  for (const entrypoint of entrypoints) {
31
31
  new lambda_function_1.LambdaFunction(this.project, {
32
32
  entrypoint: path_1.join(options.srcdir, entrypoint),
33
- cdkDeps: options.cdkDeps,
34
33
  ...options.lambdaOptions,
35
34
  });
36
35
  }
@@ -40,7 +39,7 @@ class AutoDiscover extends component_1.Component {
40
39
  cwd: path_1.join(this.project.outdir, options.testdir),
41
40
  });
42
41
  for (const entrypoint of entrypoints) {
43
- new integration_test_1.IntegrationTest(this.project, {
42
+ new _1.IntegrationTest(this.project, {
44
43
  entrypoint: path_1.join(options.testdir, entrypoint),
45
44
  tsconfigPath: options.tsconfigPath,
46
45
  });
@@ -49,5 +48,5 @@ class AutoDiscover extends component_1.Component {
49
48
  }
50
49
  exports.AutoDiscover = AutoDiscover;
51
50
  _a = JSII_RTTI_SYMBOL_1;
52
- AutoDiscover[_a] = { fqn: "projen.awscdk.AutoDiscover", version: "0.42.0" };
53
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0by1kaXNjb3Zlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hd3NjZGsvYXV0by1kaXNjb3Zlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLCtCQUE0QjtBQUM1Qiw2QkFBNkI7QUFDN0IsNENBQXlDO0FBR3pDLHlEQUFxRDtBQUNyRCx5Q0FBeUU7QUFDekUsdURBQWdGOzs7Ozs7QUFxQmhGLE1BQWEsWUFBYSxTQUFRLHFCQUFTOzs7O0lBQ3pDLFlBQVksT0FBZ0IsRUFBRSxPQUE0QjtRQUN4RCxLQUFLLENBQUMsT0FBTyxDQUFDLENBQUM7UUFFZixJQUFJLENBQUMsMkJBQTJCLENBQUMsT0FBTyxDQUFDLENBQUM7UUFDMUMsSUFBSSxDQUFDLDRCQUE0QixDQUFDLE9BQU8sQ0FBQyxDQUFDO0lBQzdDLENBQUM7SUFFTywyQkFBMkIsQ0FBQyxPQUE0QjtRQUM5RCxNQUFNLFdBQVcsR0FBRyxJQUFJLENBQUMsSUFBSSxDQUFDLE9BQU8sZ0NBQXFCLEVBQUUsRUFBRTtZQUM1RCxHQUFHLEVBQUUsV0FBSSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsTUFBTSxFQUFFLE9BQU8sQ0FBQyxNQUFNLENBQUM7U0FDL0MsQ0FBQyxDQUFDO1FBRUgsS0FBSyxNQUFNLFVBQVUsSUFBSSxXQUFX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aW1wb3J0IHsgSW50ZWdyYXRpb25UZXN0IH0gZnJvbSAnLi9pbnRlZ3JhdGlvbi10ZXN0JztcbmltcG9ydCB7IFRZUEVTQ1JJUFRfSU5URUdfRVhULCBUWVBFU0NSSVBUX0xBTUJEQV9FWFQgfSBmcm9tICcuL2ludGVybmFsJztcbmltcG9ydCB7IExhbWJkYUZ1bmN0aW9uLCBMYW1iZGFGdW5jdGlvbkNvbW1vbk9wdGlvbnMgfSBmcm9tICcuL2xhbWJkYS1mdW5jdGlvbic7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG5leHBvcnQgaW50ZXJmYWNlIEF1dG9EaXNjb3Zlck9wdGlvbnMge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgbGFtYmRhT3B0aW9ucz86IExhbWJkYUZ1bmN0aW9uQ29tbW9uT3B0aW9ucztcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSBzcmNkaXI6IHN0cmluZztcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSB0ZXN0ZGlyOiBzdHJpbmc7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSB0c2NvbmZpZ1BhdGg6IHN0cmluZztcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgY2RrRGVwczogQXdzQ2RrRGVwcztcbn1cblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA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XBvcnQgKiBhcyBnbG9iIGZyb20gJ2dsb2InO1xuaW1wb3J0IHsgSW50ZWdyYXRpb25UZXN0IH0gZnJvbSAnLic7XG5pbXBvcnQgeyBDb21wb25lbnQgfSBmcm9tICcuLi9jb21wb25lbnQnO1xuaW1wb3J0IHsgUHJvamVjdCB9IGZyb20gJy4uL3Byb2plY3QnO1xuaW1wb3J0IHsgVFlQRVNDUklQVF9JTlRFR19FWFQsIFRZUEVTQ1JJUFRfTEFNQkRBX0VYVCB9IGZyb20gJy4vaW50ZXJuYWwnO1xuaW1wb3J0IHsgTGFtYmRhRnVuY3Rpb24sIExhbWJkYUZ1bmN0aW9uQ29tbW9uT3B0aW9ucyB9IGZyb20gJy4vbGFtYmRhLWZ1bmN0aW9uJztcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbmV4cG9ydCBpbnRlcmZhY2UgQXV0b0Rpc2NvdmVyT3B0aW9ucyB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSBsYW1iZGFPcHRpb25zPzogTGFtYmRhRnVuY3Rpb25Db21tb25PcHRpb25zO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHNyY2Rpcjogc3RyaW5nO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHRlc3RkaXI6IHN0cmluZztcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHRzY29uZmlnUGF0aDogc3RyaW5nO1xufVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC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UFRfSU5URUdfRVhUfWAsIHtcbiAgICAgIGN3ZDogam9pbih0aGlzLnByb2plY3Qub3V0ZGlyLCBvcHRpb25zLnRlc3RkaXIpLFxuICAgIH0pO1xuXG4gICAgZm9yIChjb25zdCBlbnRyeXBvaW50IG9mIGVudHJ5cG9pbnRzKSB7XG4gICAgICBuZXcgSW50ZWdyYXRpb25UZXN0KHRoaXMucHJvamVjdCwge1xuICAgICAgICBlbnRyeXBvaW50OiBqb2luKG9wdGlvbnMudGVzdGRpciwgZW50cnlwb2ludCksXG4gICAgICAgIHRzY29uZmlnUGF0aDogb3B0aW9ucy50c2NvbmZpZ1BhdGgsXG4gICAgICB9KTtcbiAgICB9XG4gIH1cblxufSJdfQ==
@@ -1,12 +1,36 @@
1
1
  import { TypeScriptAppProject, TypeScriptProjectOptions } from '../typescript';
2
- import { AwsCdkDeps, AwsCdkDepsCommonOptions } from './awscdk-deps';
3
2
  import { CdkConfig, CdkConfigCommonOptions } from './cdk-config';
4
3
  import { CdkTasks } from './cdk-tasks';
5
4
  import { LambdaFunctionCommonOptions } from './lambda-function';
6
5
  /**
7
6
  * @experimental
8
7
  */
9
- export interface AwsCdkTypeScriptAppOptions extends TypeScriptProjectOptions, CdkConfigCommonOptions, AwsCdkDepsCommonOptions {
8
+ export interface AwsCdkTypeScriptAppOptions extends TypeScriptProjectOptions, CdkConfigCommonOptions {
9
+ /**
10
+ * (experimental) AWS CDK version to use.
11
+ *
12
+ * @default "1.129.0"
13
+ * @experimental
14
+ * @featured true
15
+ */
16
+ readonly cdkVersion: string;
17
+ /**
18
+ * (experimental) Use pinned version instead of caret version for CDK.
19
+ *
20
+ * You can use this to prevent yarn to mix versions for your CDK dependencies and to prevent auto-updates.
21
+ * If you use experimental features this will let you define the moment you include breaking changes.
22
+ *
23
+ * @default false
24
+ * @experimental
25
+ */
26
+ readonly cdkVersionPinning?: boolean;
27
+ /**
28
+ * (experimental) Which AWS CDK modules (those that start with "@aws-cdk/") this app uses.
29
+ *
30
+ * @experimental
31
+ * @featured true
32
+ */
33
+ readonly cdkDependencies?: string[];
10
34
  /**
11
35
  * (experimental) The CDK app's entrypoint (relative to the source directory, which is "src" by default).
12
36
  *
@@ -41,7 +65,7 @@ export declare class AwsCdkTypeScriptApp extends TypeScriptAppProject {
41
65
  *
42
66
  * @experimental
43
67
  */
44
- get cdkVersion(): string;
68
+ readonly cdkVersion: string;
45
69
  /**
46
70
  * (experimental) The CDK app entrypoint.
47
71
  *
@@ -60,10 +84,6 @@ export declare class AwsCdkTypeScriptApp extends TypeScriptAppProject {
60
84
  * @experimental
61
85
  */
62
86
  readonly cdkConfig: CdkConfig;
63
- /**
64
- * @experimental
65
- */
66
- readonly cdkDeps: AwsCdkDeps;
67
87
  /**
68
88
  * @experimental
69
89
  */
@@ -75,4 +95,5 @@ export declare class AwsCdkTypeScriptApp extends TypeScriptAppProject {
75
95
  * @experimental
76
96
  */
77
97
  addCdkDependency(...modules: string[]): void;
98
+ private formatModuleSpec;
78
99
  }