projen 0.42.0 → 0.43.2
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 +72 -54
- package/API.md +44 -42
- package/docs/java.md +4 -6
- package/docs/python.md +1 -4
- package/docs/typescript.md +108 -0
- package/lib/awscdk/auto-discover.js +3 -2
- package/lib/awscdk/awscdk-app-ts.js +1 -1
- package/lib/awscdk/awscdk-construct.js +9 -7
- package/lib/awscdk/awscdk-deps.d.ts +16 -15
- package/lib/awscdk/awscdk-deps.js +42 -36
- package/lib/awscdk/cdk-config.js +1 -1
- package/lib/awscdk/cdk-tasks.js +1 -1
- package/lib/awscdk/integration-test.d.ts +7 -0
- package/lib/awscdk/integration-test.js +11 -9
- 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.js +1 -1
- package/lib/dev-env.js +1 -1
- package/lib/docker-compose.js +2 -2
- package/lib/file.js +1 -1
- package/lib/gitattributes.js +1 -1
- 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 +6 -2
- 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/testing.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/package.json +1 -1
package/API.md
CHANGED
|
@@ -3023,14 +3023,14 @@ new awscdk.AwsCdkConstructLibrary(options: AwsCdkConstructLibraryOptions)
|
|
|
3023
3023
|
* **python** (<code>[cdk.JsiiPythonTarget](#projen-cdk-jsiipythontarget)</code>) *No description* __*Optional*__
|
|
3024
3024
|
* **rootdir** (<code>string</code>) *No description* __*Default*__: "."
|
|
3025
3025
|
* **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>)
|
|
3027
|
-
* **cdkAssert** (<code>boolean</code>) Install the @aws-cdk/assert library? __*Default*__:
|
|
3028
|
-
* **cdkAssertions** (<code>boolean</code>) Install the @aws-cdk/assertions library? __*Default*__:
|
|
3026
|
+
* **cdkVersion** (<code>string</code>) Minimum version of the AWS CDK to depend on.
|
|
3027
|
+
* **cdkAssert** (<code>boolean</code>) Install the @aws-cdk/assert library? __*Default*__: will be included by default for AWS CDK >= 1.0.0 < 2.0.0
|
|
3028
|
+
* **cdkAssertions** (<code>boolean</code>) Install the @aws-cdk/assertions library? __*Default*__: will be included by default for AWS CDK >= 1.111.0 < 2.0.0
|
|
3029
3029
|
* **cdkDependencies** (<code>Array<string></code>) Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed? __*Optional*__
|
|
3030
3030
|
* **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
3031
|
* **cdkTestDependencies** (<code>Array<string></code>) AWS CDK modules required for testing. __*Optional*__
|
|
3032
3032
|
* **cdkVersionPinning** (<code>boolean</code>) Use pinned version instead of caret version for CDK. __*Optional*__
|
|
3033
|
-
* **constructsVersion** (<code>string</code>)
|
|
3033
|
+
* **constructsVersion** (<code>string</code>) Minimum version of the `constructs` library to depend on. __*Default*__: for CDK 1.x the default is "3.2.27", for CDK 2.x the default is "10.0.5".
|
|
3034
3034
|
* **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
3035
|
* **lambdaOptions** (<code>[awscdk.LambdaFunctionCommonOptions](#projen-awscdk-lambdafunctioncommonoptions)</code>) Common options for all AWS Lambda functions. __*Default*__: default options
|
|
3036
3036
|
|
|
@@ -3097,14 +3097,14 @@ new awscdk.AwsCdkDeps(project: Project, options: AwsCdkDepsOptions)
|
|
|
3097
3097
|
|
|
3098
3098
|
* **project** (<code>[Project](#projen-project)</code>) *No description*
|
|
3099
3099
|
* **options** (<code>[awscdk.AwsCdkDepsOptions](#projen-awscdk-awscdkdepsoptions)</code>) *No description*
|
|
3100
|
-
* **cdkVersion** (<code>string</code>)
|
|
3101
|
-
* **cdkAssert** (<code>boolean</code>) Install the @aws-cdk/assert library? __*Default*__:
|
|
3102
|
-
* **cdkAssertions** (<code>boolean</code>) Install the @aws-cdk/assertions library? __*Default*__:
|
|
3100
|
+
* **cdkVersion** (<code>string</code>) Minimum version of the AWS CDK to depend on.
|
|
3101
|
+
* **cdkAssert** (<code>boolean</code>) Install the @aws-cdk/assert library? __*Default*__: will be included by default for AWS CDK >= 1.0.0 < 2.0.0
|
|
3102
|
+
* **cdkAssertions** (<code>boolean</code>) Install the @aws-cdk/assertions library? __*Default*__: will be included by default for AWS CDK >= 1.111.0 < 2.0.0
|
|
3103
3103
|
* **cdkDependencies** (<code>Array<string></code>) Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed? __*Optional*__
|
|
3104
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
3105
|
* **cdkTestDependencies** (<code>Array<string></code>) AWS CDK modules required for testing. __*Optional*__
|
|
3106
3106
|
* **cdkVersionPinning** (<code>boolean</code>) Use pinned version instead of caret version for CDK. __*Optional*__
|
|
3107
|
-
* **constructsVersion** (<code>string</code>)
|
|
3107
|
+
* **constructsVersion** (<code>string</code>) Minimum version of the `constructs` library to depend on. __*Default*__: for CDK 1.x the default is "3.2.27", for CDK 2.x the default is "10.0.5".
|
|
3108
3108
|
* **dependencyType** (<code>[DependencyType](#projen-dependencytype)</code>) The type of dependency to use for runtime AWS CDK and `constructs` modules.
|
|
3109
3109
|
|
|
3110
3110
|
|
|
@@ -3115,9 +3115,9 @@ new awscdk.AwsCdkDeps(project: Project, options: AwsCdkDepsOptions)
|
|
|
3115
3115
|
Name | Type | Description
|
|
3116
3116
|
-----|------|-------------
|
|
3117
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
|
|
3118
|
+
**cdkMajorVersion**🔹 | <code>number</code> | The major version of the AWS CDK (e.g. 1, 2, ...).
|
|
3119
|
+
**cdkMinimumVersion**🔹 | <code>string</code> | The minimum version of the AWS CDK (e.g. `2.0.0`).
|
|
3119
3120
|
**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
3121
|
|
|
3122
3122
|
### Methods
|
|
3123
3123
|
|
|
@@ -3405,14 +3405,14 @@ new awscdk.AwsCdkTypeScriptApp(options: AwsCdkTypeScriptAppOptions)
|
|
|
3405
3405
|
* **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
3406
|
* **watchExcludes** (<code>Array<string></code>) Glob patterns to exclude from `cdk watch`. __*Default*__: []
|
|
3407
3407
|
* **watchIncludes** (<code>Array<string></code>) Glob patterns to include in `cdk watch`. __*Default*__: []
|
|
3408
|
-
* **cdkVersion** (<code>string</code>)
|
|
3409
|
-
* **cdkAssert** (<code>boolean</code>) Install the @aws-cdk/assert library? __*Default*__:
|
|
3410
|
-
* **cdkAssertions** (<code>boolean</code>) Install the @aws-cdk/assertions library? __*Default*__:
|
|
3408
|
+
* **cdkVersion** (<code>string</code>) Minimum version of the AWS CDK to depend on.
|
|
3409
|
+
* **cdkAssert** (<code>boolean</code>) Install the @aws-cdk/assert library? __*Default*__: will be included by default for AWS CDK >= 1.0.0 < 2.0.0
|
|
3410
|
+
* **cdkAssertions** (<code>boolean</code>) Install the @aws-cdk/assertions library? __*Default*__: will be included by default for AWS CDK >= 1.111.0 < 2.0.0
|
|
3411
3411
|
* **cdkDependencies** (<code>Array<string></code>) Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed? __*Optional*__
|
|
3412
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
3413
|
* **cdkTestDependencies** (<code>Array<string></code>) AWS CDK modules required for testing. __*Optional*__
|
|
3414
3414
|
* **cdkVersionPinning** (<code>boolean</code>) Use pinned version instead of caret version for CDK. __*Optional*__
|
|
3415
|
-
* **constructsVersion** (<code>string</code>)
|
|
3415
|
+
* **constructsVersion** (<code>string</code>) Minimum version of the `constructs` library to depend on. __*Default*__: for CDK 1.x the default is "3.2.27", for CDK 2.x the default is "10.0.5".
|
|
3416
3416
|
* **appEntrypoint** (<code>string</code>) The CDK app's entrypoint (relative to the source directory, which is "src" by default). __*Default*__: "main.ts"
|
|
3417
3417
|
* **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
3418
|
* **lambdaOptions** (<code>[awscdk.LambdaFunctionCommonOptions](#projen-awscdk-lambdafunctioncommonoptions)</code>) Common options for all AWS Lambda functions. __*Default*__: default options
|
|
@@ -3677,14 +3677,14 @@ new awscdk.ConstructLibraryAws(options: AwsCdkConstructLibraryOptions)
|
|
|
3677
3677
|
* **python** (<code>[cdk.JsiiPythonTarget](#projen-cdk-jsiipythontarget)</code>) *No description* __*Optional*__
|
|
3678
3678
|
* **rootdir** (<code>string</code>) *No description* __*Default*__: "."
|
|
3679
3679
|
* **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>)
|
|
3681
|
-
* **cdkAssert** (<code>boolean</code>) Install the @aws-cdk/assert library? __*Default*__:
|
|
3682
|
-
* **cdkAssertions** (<code>boolean</code>) Install the @aws-cdk/assertions library? __*Default*__:
|
|
3680
|
+
* **cdkVersion** (<code>string</code>) Minimum version of the AWS CDK to depend on.
|
|
3681
|
+
* **cdkAssert** (<code>boolean</code>) Install the @aws-cdk/assert library? __*Default*__: will be included by default for AWS CDK >= 1.0.0 < 2.0.0
|
|
3682
|
+
* **cdkAssertions** (<code>boolean</code>) Install the @aws-cdk/assertions library? __*Default*__: will be included by default for AWS CDK >= 1.111.0 < 2.0.0
|
|
3683
3683
|
* **cdkDependencies** (<code>Array<string></code>) Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed? __*Optional*__
|
|
3684
3684
|
* **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
3685
|
* **cdkTestDependencies** (<code>Array<string></code>) AWS CDK modules required for testing. __*Optional*__
|
|
3686
3686
|
* **cdkVersionPinning** (<code>boolean</code>) Use pinned version instead of caret version for CDK. __*Optional*__
|
|
3687
|
-
* **constructsVersion** (<code>string</code>)
|
|
3687
|
+
* **constructsVersion** (<code>string</code>) Minimum version of the `constructs` library to depend on. __*Default*__: for CDK 1.x the default is "3.2.27", for CDK 2.x the default is "10.0.5".
|
|
3688
3688
|
* **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
3689
|
* **lambdaOptions** (<code>[awscdk.LambdaFunctionCommonOptions](#projen-awscdk-lambdafunctioncommonoptions)</code>) Common options for all AWS Lambda functions. __*Default*__: default options
|
|
3690
3690
|
|
|
@@ -3711,6 +3711,7 @@ new awscdk.IntegrationTest(project: Project, options: IntegrationTestOptions)
|
|
|
3711
3711
|
* **project** (<code>[Project](#projen-project)</code>) *No description*
|
|
3712
3712
|
* **options** (<code>[awscdk.IntegrationTestOptions](#projen-awscdk-integrationtestoptions)</code>) *No description*
|
|
3713
3713
|
* **destroyAfterDeploy** (<code>boolean</code>) Destroy the test app after a successful deployment. __*Default*__: true
|
|
3714
|
+
* **cdkDeps** (<code>[awscdk.AwsCdkDeps](#projen-awscdk-awscdkdeps)</code>) AWS CDK dependency manager.
|
|
3714
3715
|
* **entrypoint** (<code>string</code>) A path from the project root directory to a TypeScript file which contains the integration test app.
|
|
3715
3716
|
* **tsconfigPath** (<code>string</code>) The path of the tsconfig.json file to use when running integration test cdk apps.
|
|
3716
3717
|
|
|
@@ -10108,7 +10109,7 @@ Name | Type | Description
|
|
|
10108
10109
|
-----|------|-------------
|
|
10109
10110
|
**author**🔹 | <code>string</code> | The name of the library author.
|
|
10110
10111
|
**authorAddress**🔹 | <code>string</code> | Email or URL of the library author.
|
|
10111
|
-
**cdkVersion**🔹 | <code>string</code> |
|
|
10112
|
+
**cdkVersion**🔹 | <code>string</code> | Minimum version of the AWS CDK to depend on.
|
|
10112
10113
|
**defaultReleaseBranch**🔹 | <code>string</code> | The name of the main release branch.
|
|
10113
10114
|
**name**🔹 | <code>string</code> | This is the name of your project.
|
|
10114
10115
|
**repositoryUrl**🔹 | <code>string</code> | Git repository URL.
|
|
@@ -10129,19 +10130,19 @@ Name | Type | Description
|
|
|
10129
10130
|
**bundledDeps**?🔹 | <code>Array<string></code> | List of dependencies to bundle into this module.<br/>__*Optional*__
|
|
10130
10131
|
**bundlerOptions**?🔹 | <code>[javascript.BundlerOptions](#projen-javascript-bundleroptions)</code> | Options for `Bundler`.<br/>__*Optional*__
|
|
10131
10132
|
**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
|
|
10132
|
-
**cdkAssert**?⚠️ | <code>boolean</code> | Install the @aws-cdk/assert library?<br/>__*Default*__:
|
|
10133
|
-
**cdkAssertions**?🔹 | <code>boolean</code> | Install the @aws-cdk/assertions library?<br/>__*Default*__:
|
|
10133
|
+
**cdkAssert**?⚠️ | <code>boolean</code> | Install the @aws-cdk/assert library?<br/>__*Default*__: will be included by default for AWS CDK >= 1.0.0 < 2.0.0
|
|
10134
|
+
**cdkAssertions**?🔹 | <code>boolean</code> | Install the @aws-cdk/assertions library?<br/>__*Default*__: will be included by default for AWS CDK >= 1.111.0 < 2.0.0
|
|
10134
10135
|
**cdkDependencies**?⚠️ | <code>Array<string></code> | Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed?<br/>__*Optional*__
|
|
10135
10136
|
**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
10137
|
**cdkTestDependencies**?⚠️ | <code>Array<string></code> | AWS CDK modules required for testing.<br/>__*Optional*__
|
|
10137
|
-
**cdkVersionPinning
|
|
10138
|
+
**cdkVersionPinning**?🔹 | <code>boolean</code> | Use pinned version instead of caret version for CDK.<br/>__*Optional*__
|
|
10138
10139
|
**clobber**?🔹 | <code>boolean</code> | Add a `clobber` task which resets the repo to origin.<br/>__*Default*__: true
|
|
10139
10140
|
**codeArtifactOptions**?🔹 | <code>[javascript.CodeArtifactOptions](#projen-javascript-codeartifactoptions)</code> | Options for publishing npm package to AWS CodeArtifact.<br/>__*Default*__: undefined
|
|
10140
10141
|
**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
10142
|
**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
10143
|
**compat**?🔹 | <code>boolean</code> | Automatically run API compatibility test against the latest version published to npm after compilation.<br/>__*Default*__: false
|
|
10143
10144
|
**compatIgnore**?🔹 | <code>string</code> | Name of the ignore file for API compatibility tests.<br/>__*Default*__: ".compatignore"
|
|
10144
|
-
**constructsVersion**?🔹 | <code>string</code> |
|
|
10145
|
+
**constructsVersion**?🔹 | <code>string</code> | Minimum version of the `constructs` library to depend on.<br/>__*Default*__: for CDK 1.x the default is "3.2.27", for CDK 2.x the default is "10.0.5".
|
|
10145
10146
|
**copyrightOwner**?🔹 | <code>string</code> | License copyright owner.<br/>__*Default*__: defaults to the value of authorName or "" if `authorName` is undefined.
|
|
10146
10147
|
**copyrightPeriod**?🔹 | <code>string</code> | The copyright years to put in the LICENSE file.<br/>__*Default*__: current year
|
|
10147
10148
|
**dependabot**?🔹 | <code>boolean</code> | Use dependabot to handle dependency upgrades.<br/>__*Default*__: false
|
|
@@ -10265,14 +10266,14 @@ Options for `AwsCdkDeps`.
|
|
|
10265
10266
|
|
|
10266
10267
|
Name | Type | Description
|
|
10267
10268
|
-----|------|-------------
|
|
10268
|
-
**cdkVersion**🔹 | <code>string</code> |
|
|
10269
|
-
**cdkAssert**?⚠️ | <code>boolean</code> | Install the @aws-cdk/assert library?<br/>__*Default*__:
|
|
10270
|
-
**cdkAssertions**?🔹 | <code>boolean</code> | Install the @aws-cdk/assertions library?<br/>__*Default*__:
|
|
10269
|
+
**cdkVersion**🔹 | <code>string</code> | Minimum version of the AWS CDK to depend on.
|
|
10270
|
+
**cdkAssert**?⚠️ | <code>boolean</code> | Install the @aws-cdk/assert library?<br/>__*Default*__: will be included by default for AWS CDK >= 1.0.0 < 2.0.0
|
|
10271
|
+
**cdkAssertions**?🔹 | <code>boolean</code> | Install the @aws-cdk/assertions library?<br/>__*Default*__: will be included by default for AWS CDK >= 1.111.0 < 2.0.0
|
|
10271
10272
|
**cdkDependencies**?⚠️ | <code>Array<string></code> | Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed?<br/>__*Optional*__
|
|
10272
10273
|
**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
10274
|
**cdkTestDependencies**?⚠️ | <code>Array<string></code> | AWS CDK modules required for testing.<br/>__*Optional*__
|
|
10274
|
-
**cdkVersionPinning
|
|
10275
|
-
**constructsVersion**?🔹 | <code>string</code> |
|
|
10275
|
+
**cdkVersionPinning**?🔹 | <code>boolean</code> | Use pinned version instead of caret version for CDK.<br/>__*Optional*__
|
|
10276
|
+
**constructsVersion**?🔹 | <code>string</code> | Minimum version of the `constructs` library to depend on.<br/>__*Default*__: for CDK 1.x the default is "3.2.27", for CDK 2.x the default is "10.0.5".
|
|
10276
10277
|
|
|
10277
10278
|
|
|
10278
10279
|
|
|
@@ -10285,15 +10286,15 @@ Name | Type | Description
|
|
|
10285
10286
|
|
|
10286
10287
|
Name | Type | Description
|
|
10287
10288
|
-----|------|-------------
|
|
10288
|
-
**cdkVersion**🔹 | <code>string</code> |
|
|
10289
|
+
**cdkVersion**🔹 | <code>string</code> | Minimum version of the AWS CDK to depend on.
|
|
10289
10290
|
**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*__:
|
|
10291
|
-
**cdkAssertions**?🔹 | <code>boolean</code> | Install the @aws-cdk/assertions library?<br/>__*Default*__:
|
|
10291
|
+
**cdkAssert**?⚠️ | <code>boolean</code> | Install the @aws-cdk/assert library?<br/>__*Default*__: will be included by default for AWS CDK >= 1.0.0 < 2.0.0
|
|
10292
|
+
**cdkAssertions**?🔹 | <code>boolean</code> | Install the @aws-cdk/assertions library?<br/>__*Default*__: will be included by default for AWS CDK >= 1.111.0 < 2.0.0
|
|
10292
10293
|
**cdkDependencies**?⚠️ | <code>Array<string></code> | Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed?<br/>__*Optional*__
|
|
10293
10294
|
**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
10295
|
**cdkTestDependencies**?⚠️ | <code>Array<string></code> | AWS CDK modules required for testing.<br/>__*Optional*__
|
|
10295
|
-
**cdkVersionPinning
|
|
10296
|
-
**constructsVersion**?🔹 | <code>string</code> |
|
|
10296
|
+
**cdkVersionPinning**?🔹 | <code>boolean</code> | Use pinned version instead of caret version for CDK.<br/>__*Optional*__
|
|
10297
|
+
**constructsVersion**?🔹 | <code>string</code> | Minimum version of the `constructs` library to depend on.<br/>__*Default*__: for CDK 1.x the default is "3.2.27", for CDK 2.x the default is "10.0.5".
|
|
10297
10298
|
|
|
10298
10299
|
|
|
10299
10300
|
|
|
@@ -10366,7 +10367,7 @@ Name | Type | Description
|
|
|
10366
10367
|
|
|
10367
10368
|
Name | Type | Description
|
|
10368
10369
|
-----|------|-------------
|
|
10369
|
-
**cdkVersion**🔹 | <code>string</code> |
|
|
10370
|
+
**cdkVersion**🔹 | <code>string</code> | Minimum version of the AWS CDK to depend on.
|
|
10370
10371
|
**defaultReleaseBranch**🔹 | <code>string</code> | The name of the main release branch.
|
|
10371
10372
|
**name**🔹 | <code>string</code> | This is the name of your project.
|
|
10372
10373
|
**allowLibraryDependencies**?🔹 | <code>boolean</code> | Allow the project to include `peerDependencies` and `bundledDependencies`.<br/>__*Default*__: true
|
|
@@ -10387,18 +10388,18 @@ Name | Type | Description
|
|
|
10387
10388
|
**buildWorkflow**?🔹 | <code>boolean</code> | Define a GitHub workflow for building PRs.<br/>__*Default*__: true if not a subproject
|
|
10388
10389
|
**bundledDeps**?🔹 | <code>Array<string></code> | List of dependencies to bundle into this module.<br/>__*Optional*__
|
|
10389
10390
|
**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*__:
|
|
10391
|
-
**cdkAssertions**?🔹 | <code>boolean</code> | Install the @aws-cdk/assertions library?<br/>__*Default*__:
|
|
10391
|
+
**cdkAssert**?⚠️ | <code>boolean</code> | Install the @aws-cdk/assert library?<br/>__*Default*__: will be included by default for AWS CDK >= 1.0.0 < 2.0.0
|
|
10392
|
+
**cdkAssertions**?🔹 | <code>boolean</code> | Install the @aws-cdk/assertions library?<br/>__*Default*__: will be included by default for AWS CDK >= 1.111.0 < 2.0.0
|
|
10392
10393
|
**cdkDependencies**?⚠️ | <code>Array<string></code> | Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed?<br/>__*Optional*__
|
|
10393
10394
|
**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
10395
|
**cdkTestDependencies**?⚠️ | <code>Array<string></code> | AWS CDK modules required for testing.<br/>__*Optional*__
|
|
10395
|
-
**cdkVersionPinning
|
|
10396
|
+
**cdkVersionPinning**?🔹 | <code>boolean</code> | Use pinned version instead of caret version for CDK.<br/>__*Optional*__
|
|
10396
10397
|
**cdkout**?🔹 | <code>string</code> | cdk.out directory.<br/>__*Default*__: "cdk.out"
|
|
10397
10398
|
**clobber**?🔹 | <code>boolean</code> | Add a `clobber` task which resets the repo to origin.<br/>__*Default*__: true
|
|
10398
10399
|
**codeArtifactOptions**?🔹 | <code>[javascript.CodeArtifactOptions](#projen-javascript-codeartifactoptions)</code> | Options for publishing npm package to AWS CodeArtifact.<br/>__*Default*__: undefined
|
|
10399
10400
|
**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
10401
|
**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> |
|
|
10402
|
+
**constructsVersion**?🔹 | <code>string</code> | Minimum version of the `constructs` library to depend on.<br/>__*Default*__: for CDK 1.x the default is "3.2.27", for CDK 2.x the default is "10.0.5".
|
|
10402
10403
|
**context**?🔹 | <code>Map<string, string></code> | Additional context to include in `cdk.json`.<br/>__*Default*__: no additional context
|
|
10403
10404
|
**copyrightOwner**?🔹 | <code>string</code> | License copyright owner.<br/>__*Default*__: defaults to the value of authorName or "" if `authorName` is undefined.
|
|
10404
10405
|
**copyrightPeriod**?🔹 | <code>string</code> | The copyright years to put in the LICENSE file.<br/>__*Default*__: current year
|
|
@@ -10560,7 +10561,7 @@ Name | Type | Description
|
|
|
10560
10561
|
-----|------|-------------
|
|
10561
10562
|
**author**⚠️ | <code>string</code> | The name of the library author.
|
|
10562
10563
|
**authorAddress**⚠️ | <code>string</code> | Email or URL of the library author.
|
|
10563
|
-
**cdkVersion**⚠️ | <code>string</code> |
|
|
10564
|
+
**cdkVersion**⚠️ | <code>string</code> | Minimum version of the AWS CDK to depend on.
|
|
10564
10565
|
**defaultReleaseBranch**⚠️ | <code>string</code> | The name of the main release branch.
|
|
10565
10566
|
**name**⚠️ | <code>string</code> | This is the name of your project.
|
|
10566
10567
|
**repositoryUrl**⚠️ | <code>string</code> | Git repository URL.
|
|
@@ -10581,8 +10582,8 @@ Name | Type | Description
|
|
|
10581
10582
|
**bundledDeps**?⚠️ | <code>Array<string></code> | List of dependencies to bundle into this module.<br/>__*Optional*__
|
|
10582
10583
|
**bundlerOptions**?⚠️ | <code>[javascript.BundlerOptions](#projen-javascript-bundleroptions)</code> | Options for `Bundler`.<br/>__*Optional*__
|
|
10583
10584
|
**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
|
|
10584
|
-
**cdkAssert**?⚠️ | <code>boolean</code> | Install the @aws-cdk/assert library?<br/>__*Default*__:
|
|
10585
|
-
**cdkAssertions**?⚠️ | <code>boolean</code> | Install the @aws-cdk/assertions library?<br/>__*Default*__:
|
|
10585
|
+
**cdkAssert**?⚠️ | <code>boolean</code> | Install the @aws-cdk/assert library?<br/>__*Default*__: will be included by default for AWS CDK >= 1.0.0 < 2.0.0
|
|
10586
|
+
**cdkAssertions**?⚠️ | <code>boolean</code> | Install the @aws-cdk/assertions library?<br/>__*Default*__: will be included by default for AWS CDK >= 1.111.0 < 2.0.0
|
|
10586
10587
|
**cdkDependencies**?⚠️ | <code>Array<string></code> | Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed?<br/>__*Optional*__
|
|
10587
10588
|
**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
10589
|
**cdkTestDependencies**?⚠️ | <code>Array<string></code> | AWS CDK modules required for testing.<br/>__*Optional*__
|
|
@@ -10593,7 +10594,7 @@ Name | Type | Description
|
|
|
10593
10594
|
**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
10595
|
**compat**?⚠️ | <code>boolean</code> | Automatically run API compatibility test against the latest version published to npm after compilation.<br/>__*Default*__: false
|
|
10595
10596
|
**compatIgnore**?⚠️ | <code>string</code> | Name of the ignore file for API compatibility tests.<br/>__*Default*__: ".compatignore"
|
|
10596
|
-
**constructsVersion**?⚠️ | <code>string</code> |
|
|
10597
|
+
**constructsVersion**?⚠️ | <code>string</code> | Minimum version of the `constructs` library to depend on.<br/>__*Default*__: for CDK 1.x the default is "3.2.27", for CDK 2.x the default is "10.0.5".
|
|
10597
10598
|
**copyrightOwner**?⚠️ | <code>string</code> | License copyright owner.<br/>__*Default*__: defaults to the value of authorName or "" if `authorName` is undefined.
|
|
10598
10599
|
**copyrightPeriod**?⚠️ | <code>string</code> | The copyright years to put in the LICENSE file.<br/>__*Default*__: current year
|
|
10599
10600
|
**dependabot**?⚠️ | <code>boolean</code> | Use dependabot to handle dependency upgrades.<br/>__*Default*__: false
|
|
@@ -10730,6 +10731,7 @@ Options for `IntegrationTest`.
|
|
|
10730
10731
|
|
|
10731
10732
|
Name | Type | Description
|
|
10732
10733
|
-----|------|-------------
|
|
10734
|
+
**cdkDeps**🔹 | <code>[awscdk.AwsCdkDeps](#projen-awscdk-awscdkdeps)</code> | AWS CDK dependency manager.
|
|
10733
10735
|
**entrypoint**🔹 | <code>string</code> | A path from the project root directory to a TypeScript file which contains the integration test app.
|
|
10734
10736
|
**tsconfigPath**🔹 | <code>string</code> | The path of the tsconfig.json file to use when running integration test cdk apps.
|
|
10735
10737
|
**destroyAfterDeploy**?🔹 | <code>boolean</code> | Destroy the test app after a successful deployment.<br/>__*Default*__: true
|
package/docs/java.md
CHANGED
|
@@ -46,14 +46,12 @@ const project = new java.JavaProject({
|
|
|
46
46
|
project.synth();
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
It is possible to create your projenrc file in java. In the future, this will be
|
|
50
|
+
the default, but at the moment you need to add some configuration. See the
|
|
51
|
+
[`projenrc.java`](#projenrcjava) section for details.
|
|
51
52
|
|
|
52
53
|
To modify your project definitions, edit `.projenrc.js` and run `projen` again
|
|
53
|
-
to re-synthesize your project. The following sections describe the various
|
|
54
|
-
features of your project.
|
|
55
|
-
|
|
56
|
-
The following sections describe the various features of Java projects.
|
|
54
|
+
to re-synthesize your project. The following sections describe the various features of Java projects.
|
|
57
55
|
|
|
58
56
|
## Versioning
|
|
59
57
|
|
package/docs/python.md
CHANGED
|
@@ -47,10 +47,7 @@ project.synth();
|
|
|
47
47
|
> specifying your project definitions in python.
|
|
48
48
|
|
|
49
49
|
To modify your project definitions, edit `.projenrc.js` and run `projen` again
|
|
50
|
-
to re-synthesize your project. The following sections describe the various
|
|
51
|
-
features of your project.
|
|
52
|
-
|
|
53
|
-
The following sections describe the various features of Python projects.
|
|
50
|
+
to re-synthesize your project. The following sections describe the various features of Python projects.
|
|
54
51
|
|
|
55
52
|
## Managing environments, dependencies, and packaging
|
|
56
53
|
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# TypeScript Projects
|
|
2
|
+
|
|
3
|
+
To create a new TypeScript project, use `projen new typescript`:
|
|
4
|
+
|
|
5
|
+
```shell
|
|
6
|
+
npx projen new typescript
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
This will create a `.projenrc.js` file which defines your project. If you
|
|
10
|
+
instead would like to define your project in TypeScript, use the
|
|
11
|
+
`--projenrc-ts` flag to create a `.projenrc.ts` file:
|
|
12
|
+
|
|
13
|
+
```shell
|
|
14
|
+
npx projen new typescript --projenrc-ts
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
`projen new` will synthesize a standard project directory structure with some sample
|
|
18
|
+
code.
|
|
19
|
+
|
|
20
|
+
```shell
|
|
21
|
+
├── src
|
|
22
|
+
│ ├── index.ts
|
|
23
|
+
├── test
|
|
24
|
+
│ ├── hello.test.ts
|
|
25
|
+
├── node_modules
|
|
26
|
+
├── package.json
|
|
27
|
+
└── tsconfig.json
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
The default options will set up your `tsconfig` root directory as `src` and your
|
|
31
|
+
out directory as `lib`. By default the `test` directory is not compiled to
|
|
32
|
+
JavaScript and instead compiled when `npx projen test` is executed.
|
|
33
|
+
|
|
34
|
+
The `projen new` command will also generate a `.projenrc.js` file which includes
|
|
35
|
+
the definition of your project with any options you specified in the command
|
|
36
|
+
line:
|
|
37
|
+
|
|
38
|
+
```js
|
|
39
|
+
const { typescript } = require('projen');
|
|
40
|
+
const project = new typescript.TypeScriptProject({
|
|
41
|
+
defaultReleaseBranch: 'main',
|
|
42
|
+
name: 'my-project',
|
|
43
|
+
});
|
|
44
|
+
project.synth();
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
To modify your project definitions, edit `.projenrc.js` and run `projen` again
|
|
48
|
+
to re-synthesize your project. The following sections describe the various
|
|
49
|
+
features of your TypeScript project.
|
|
50
|
+
|
|
51
|
+
## Dependencies
|
|
52
|
+
|
|
53
|
+
You can specify dependencies in your project via the `deps`, `devDeps`, and
|
|
54
|
+
`peerDeps` options similar to what you might expect in a `package.json` file.
|
|
55
|
+
|
|
56
|
+
The recommendation is to only specify the module name here (e.g. `express`).
|
|
57
|
+
This will behave similar to yarn add or npm install in the sense that it will
|
|
58
|
+
add the module as a dependency to your package.json file with the latest version
|
|
59
|
+
(`^`). You can specify semver requirements in the same syntax passed to npm i or
|
|
60
|
+
yarn add (e.g. `express@^2`) and this will be what your `package.json` will
|
|
61
|
+
eventually include.
|
|
62
|
+
|
|
63
|
+
## Migrating your TypeScript Project to Projen
|
|
64
|
+
|
|
65
|
+
Projen provides some opinionated defaults that may be different than the defaults
|
|
66
|
+
you rely on in your existing TypeScript Project. This section attempts to document
|
|
67
|
+
some of the common themes to look out for when migrating an existing TypeScript
|
|
68
|
+
project to Projen.
|
|
69
|
+
|
|
70
|
+
### Default Directory Structure
|
|
71
|
+
|
|
72
|
+
The most important is the default project structure. Projen expects all source code
|
|
73
|
+
to be in the `src` directory and will write compiled `.js` and `.d.ts` files to the
|
|
74
|
+
`lib` directory. Test files are expected in the `test` directory and not compiled
|
|
75
|
+
to javascript. Instead, Projen configures `Jest` to compile `.ts` files when testing.
|
|
76
|
+
|
|
77
|
+
As this is only one of many structures for valid TypeScript projects, your migrated
|
|
78
|
+
project may not work out-of-the-box with Projen. We recommend that you take the
|
|
79
|
+
time to fully migrate to the expected project structure so that you can take full
|
|
80
|
+
advantage of Projen management on your repository.
|
|
81
|
+
|
|
82
|
+
However, you can also configure your `.projenrc.js` file to reflect your current
|
|
83
|
+
project structure. A `TypeScriptProject` exposes all options in a `tsConfig` file
|
|
84
|
+
so you can manually set the structure you want. Here is an example for specifying a
|
|
85
|
+
structure where the TypeScript compiler finds all TypeScript files recursively in your
|
|
86
|
+
repository:
|
|
87
|
+
|
|
88
|
+
```js
|
|
89
|
+
const { typescript } = require('projen');
|
|
90
|
+
const project = new typescript.TypeScriptProject({
|
|
91
|
+
...
|
|
92
|
+
tsConfig: {
|
|
93
|
+
compilerOptions: {
|
|
94
|
+
rootDir: '.',
|
|
95
|
+
outDir: '.',
|
|
96
|
+
},
|
|
97
|
+
include: ['**/*.ts'], // all typescript files recursively
|
|
98
|
+
},
|
|
99
|
+
});
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Dependency Versions
|
|
103
|
+
|
|
104
|
+
As described in the section above, Projen recommends that you list your dependencies
|
|
105
|
+
only by module name and have Projen install the latest version of the package. A
|
|
106
|
+
consequence of this recommendation is that when migrating, you may unknowingly update
|
|
107
|
+
your dependencies to incompatible versions. You can always specify specific semvar
|
|
108
|
+
requirements (e.g. `express@^2`) if necessary.
|
|
@@ -42,6 +42,7 @@ class AutoDiscover extends component_1.Component {
|
|
|
42
42
|
for (const entrypoint of entrypoints) {
|
|
43
43
|
new integration_test_1.IntegrationTest(this.project, {
|
|
44
44
|
entrypoint: path_1.join(options.testdir, entrypoint),
|
|
45
|
+
cdkDeps: options.cdkDeps,
|
|
45
46
|
tsconfigPath: options.tsconfigPath,
|
|
46
47
|
});
|
|
47
48
|
}
|
|
@@ -49,5 +50,5 @@ class AutoDiscover extends component_1.Component {
|
|
|
49
50
|
}
|
|
50
51
|
exports.AutoDiscover = AutoDiscover;
|
|
51
52
|
_a = JSII_RTTI_SYMBOL_1;
|
|
52
|
-
AutoDiscover[_a] = { fqn: "projen.awscdk.AutoDiscover", version: "0.
|
|
53
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
53
|
+
AutoDiscover[_a] = { fqn: "projen.awscdk.AutoDiscover", version: "0.43.2" };
|
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0by1kaXNjb3Zlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hd3NjZGsvYXV0by1kaXNjb3Zlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLCtCQUE0QjtBQUM1Qiw2QkFBNkI7QUFDN0IsNENBQXlDO0FBR3pDLHlEQUFxRDtBQUNyRCx5Q0FBeUU7QUFDekUsdURBQWdGOzs7Ozs7QUFxQmhGLE1BQWEsWUFBYSxTQUFRLHFCQUFTOzs7O0lBQ3pDLFlBQVksT0FBZ0IsRUFBRSxPQUE0QjtRQUN4RCxLQUFLLENBQUMsT0FBTyxDQUFDLENBQUM7UUFFZixJ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ICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHNyY2Rpcjogc3RyaW5nO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHRlc3RkaXI6IHN0cmluZztcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHRzY29uZmlnUGF0aDogc3RyaW5nO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSBjZGtEZXBzOiBBd3NDZGtEZXBzO1xufVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG5leHBvcnQgY2xhc3MgQXV0b0Rpc2NvdmVyIGV4dGVuZHMgQ29tcG9uZW50IHtcbiAgY29uc3RydWN0b3IocHJvamVjdDogUHJvamVjdCwgb3B0aW9uczogQXV0b0Rpc2NvdmVyT3B0aW9ucykge1xuICAgIHN1cGVyKHByb2plY3QpO1xuXG4gICAgdGhpcy5hdXRvRGlzY292ZXJMYW1iZGFGdW5jdGlvbnMob3B0aW9ucyk7XG4gICAgdGhpcy5hdXRvRGlzY292ZXJJbnRlZ3JhdGlvblRlc3RzKG9wdGlvbnMpO1xuICB9XG5cbiAgcHJpdmF0ZSBhdXRvRGlzY292ZXJMYW1iZGFGdW5jdGlvbnMob3B0aW9uczogQXV0b0Rpc2NvdmVyT3B0aW9ucykge1xuICAgIGNvbnN0IGVudHJ5cG9pbnRzID0gZ2xvYi5zeW5jKGAqKi8qJHtUWVBFU0NSSVBUX0xBTUJEQV9FWFR9YCwge1xuICAgICAgY3dkOiBqb2luKHRoaXMucHJvamVjdC5vdXRkaXIsIG9wdGlvbnMuc3JjZGlyKSxcbiAgICB9KTtcblxuICAgIGZvciAoY29uc3QgZW50cnlwb2ludCBvZiBlbnRyeXBvaW50cykge1xuICAgICAgbmV3IExhbWJkYUZ1bmN0aW9uKHRoaXMucHJvamVjdCwge1xuICAgICAgICBlbnRyeXBvaW50OiBqb2luKG9wdGlvbnMuc3JjZGlyLCBlbnRyeXBvaW50KSxcbiAgICAgICAgY2RrRGVwczogb3B0aW9ucy5jZGtEZXBzLFxuICAgICAgICAuLi5vcHRpb25zLmxhbWJkYU9wdGlvbnMsXG4gICAgICB9KTtcbiAgICB9XG4gIH1cblxuICBwcml2YXRlIGF1dG9EaXNjb3ZlckludGVncmF0aW9uVGVzdHMob3B0aW9uczogQXV0b0Rpc2NvdmVyT3B0aW9ucykge1xuICAgIGNvbnN0IGVudHJ5cG9pbnRzID0gZ2xvYi5zeW5jKGAqKi8qJHtUWVBFU0NSSVBUX0lOVEVHX0VYVH1gLCB7XG4gICAgICBjd2Q6IGpvaW4odGhpcy5wcm9qZWN0Lm91dGRpciwgb3B0aW9ucy50ZXN0ZGlyKSxcbiAgICB9KTtcblxuICAgIGZvciAoY29uc3QgZW50cnlwb2ludCBvZiBlbnRyeXBvaW50cykge1xuICAgICAgbmV3IEludGVncmF0aW9uVGVzdCh0aGlzLnByb2plY3QsIHtcbiAgICAgICAgZW50cnlwb2ludDogam9pbihvcHRpb25zLnRlc3RkaXIsIGVudHJ5cG9pbnQpLFxuICAgICAgICBjZGtEZXBzOiBvcHRpb25zLmNka0RlcHMsXG4gICAgICAgIHRzY29uZmlnUGF0aDogb3B0aW9ucy50c2NvbmZpZ1BhdGgsXG4gICAgICB9KTtcbiAgICB9XG4gIH1cblxufSJdfQ==
|
|
@@ -109,7 +109,7 @@ class AwsCdkTypeScriptApp extends typescript_1.TypeScriptAppProject {
|
|
|
109
109
|
}
|
|
110
110
|
exports.AwsCdkTypeScriptApp = AwsCdkTypeScriptApp;
|
|
111
111
|
_a = JSII_RTTI_SYMBOL_1;
|
|
112
|
-
AwsCdkTypeScriptApp[_a] = { fqn: "projen.awscdk.AwsCdkTypeScriptApp", version: "0.
|
|
112
|
+
AwsCdkTypeScriptApp[_a] = { fqn: "projen.awscdk.AwsCdkTypeScriptApp", version: "0.43.2" };
|
|
113
113
|
class SampleCode extends component_1.Component {
|
|
114
114
|
constructor(project, cdkMajorVersion) {
|
|
115
115
|
super(project);
|
|
@@ -23,10 +23,12 @@ class AwsCdkConstructLibrary extends cdk_1.ConstructLibrary {
|
|
|
23
23
|
* @experimental
|
|
24
24
|
*/
|
|
25
25
|
constructor(options) {
|
|
26
|
-
var _c, _d
|
|
27
|
-
const
|
|
28
|
-
const cdkMajorVersion = (_d = (_c = semver.minVersion(cdkVersion)) === null || _c === void 0 ? void 0 : _c.major) !== null && _d !== void 0 ? _d : 2;
|
|
26
|
+
var _c, _d;
|
|
27
|
+
const cdkMajorVersion = (_c = semver.parse(options.cdkVersion)) === null || _c === void 0 ? void 0 : _c.major;
|
|
29
28
|
super({
|
|
29
|
+
peerDependencyOptions: cdkMajorVersion === 1 ? {
|
|
30
|
+
pinnedDevDependency: false,
|
|
31
|
+
} : undefined,
|
|
30
32
|
workflowContainerImage: determineWorkflowContainerImage(options, cdkMajorVersion),
|
|
31
33
|
...options,
|
|
32
34
|
});
|
|
@@ -35,7 +37,7 @@ class AwsCdkConstructLibrary extends cdk_1.ConstructLibrary {
|
|
|
35
37
|
dependencyType: dependencies_1.DependencyType.PEER,
|
|
36
38
|
...options,
|
|
37
39
|
});
|
|
38
|
-
const lambdaAutoDiscover = (
|
|
40
|
+
const lambdaAutoDiscover = (_d = options.lambdaAutoDiscover) !== null && _d !== void 0 ? _d : true;
|
|
39
41
|
if (lambdaAutoDiscover) {
|
|
40
42
|
new auto_discover_1.AutoDiscover(this, {
|
|
41
43
|
srcdir: this.srcdir,
|
|
@@ -83,7 +85,7 @@ class AwsCdkConstructLibrary extends cdk_1.ConstructLibrary {
|
|
|
83
85
|
}
|
|
84
86
|
exports.AwsCdkConstructLibrary = AwsCdkConstructLibrary;
|
|
85
87
|
_a = JSII_RTTI_SYMBOL_1;
|
|
86
|
-
AwsCdkConstructLibrary[_a] = { fqn: "projen.awscdk.AwsCdkConstructLibrary", version: "0.
|
|
88
|
+
AwsCdkConstructLibrary[_a] = { fqn: "projen.awscdk.AwsCdkConstructLibrary", version: "0.43.2" };
|
|
87
89
|
function determineWorkflowContainerImage(options, cdkMajorVersion) {
|
|
88
90
|
// if the user specifies the workflow container image explicitly, use that
|
|
89
91
|
if (options.workflowContainerImage) {
|
|
@@ -110,5 +112,5 @@ class ConstructLibraryAws extends AwsCdkConstructLibrary {
|
|
|
110
112
|
}
|
|
111
113
|
exports.ConstructLibraryAws = ConstructLibraryAws;
|
|
112
114
|
_b = JSII_RTTI_SYMBOL_1;
|
|
113
|
-
ConstructLibraryAws[_b] = { fqn: "projen.awscdk.ConstructLibraryAws", version: "0.
|
|
114
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
115
|
+
ConstructLibraryAws[_b] = { fqn: "projen.awscdk.ConstructLibraryAws", version: "0.43.2" };
|
|
116
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXdzY2RrLWNvbnN0cnVjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hd3NjZGsvYXdzY2RrLWNvbnN0cnVjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLGlDQUFpQztBQUNqQyxnQ0FBbUU7QUFDbkUsa0RBQWlEO0FBQ2pELG1EQUErQztBQUMvQywrQ0FBb0U7Ozs7Ozs7Ozs7O0FBYXBFLE1BQWEsc0JBQXVCLFNBQVEsc0JBQWdCOzs7O0lBRzFELFlBQVksT0FBc0M7O1FBQ2hELE1BQU0sZUFBZSxTQUFHLE1BQU0sQ0FBQyxLQUFLLENBQUMsT0FBTyxDQUFDLFVBQVUsQ0FBQywwQ0FBRSxLQUFLLENBQUM7UUFFaE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G9ydCB7IEF1dG9EaXNjb3ZlciB9IGZyb20gJy4vYXV0by1kaXNjb3Zlcic7XG5pbXBvcnQgeyBBd3NDZGtEZXBzLCBBd3NDZGtEZXBzQ29tbW9uT3B0aW9ucyB9IGZyb20gJy4vYXdzY2RrLWRlcHMnO1xuaW1wb3J0IHsgTGFtYmRhRnVuY3Rpb25Db21tb25PcHRpb25zIH0gZnJvbSAnLi9sYW1iZGEtZnVuY3Rpb24nO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbmV4cG9ydCBpbnRlcmZhY2UgQXdzQ2RrQ29uc3RydWN0TGlicmFyeU9wdGlvbnMgZXh0ZW5kcyBDb25zdHJ1Y3RMaWJyYXJ5T3B0aW9ucywgQXdzQ2RrRGVwc0NvbW1vbk9wdGlvbnMge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSBsYW1iZGFBdXRvRGlzY292ZXI/OiBib29sZWFuO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgbGFtYmRhT3B0aW9ucz86IExhbWJkYUZ1bmN0aW9uQ29tbW9uT3B0aW9ucztcbn1cblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG5leHBvcnQgY2xhc3MgQXdzQ2RrQ29uc3RydWN0TGlicmFyeSBleHRlbmRzIENvbnN0cnVjdExpYnJhcnkge1xuICBwdWJsaWMgcmVhZG9ubHkgY2RrRGVwczogQXdzQ2RrRGVwcztcblxuICBjb25zdHJ1Y3RvcihvcHRpb25zOiBBd3NDZGtDb25zdHJ1Y3RMaWJyYXJ5T3B0aW9ucykge1xuICAgIGNvbnN0IGNka01ham9yVmVyc2lvbiA9IHNlbXZlci5wYXJzZShvcHRpb25zLmNka1ZlcnNpb24pPy5tYWpvcjtcblxuICAgIHN1cGVyKHtcbiAgICAgIHBlZXJEZXBlbmRlbmN5T3B0aW9uczogY2RrTWFqb3JWZXJzaW9uID09PSAxID8ge1xuICAgICAgICBwaW5uZWREZXZEZXBlbmRlbmN5OiBmYWxzZSxcbiAgICAgIH0gOiB1bmRlZmluZWQsXG4gICAgICB3b3JrZmxvd0NvbnRhaW5lckltYWdlOiBkZXRlcm1pbmVXb3JrZmxvd0NvbnRhaW5lckltYWdlKG9wdGlvbnMsIGNka01ham9yVmVyc2lvbiksXG4gICAgICAuLi5vcHRpb25zLFxuICAgIH0pO1xuXG4gICAgdGhpcy5jZGtEZXBzID0gbmV3IEF3c0Nka0RlcHModGhpcywge1xuICAgICAgLy8gc2luY2UgdGhpcyB3ZSBhcmUgYSBsaWJyYXJ5LCBkZXBlbmRlbmNpZXMgc2hvdWxkIGJlIGFkZGVkIGEgcGVlcnNcbiAgICAgIGRlcGVuZGVuY3lUeXBlOiBEZXBlbmRlbmN5VHlwZS5QRUVSLFxuICAgICAgLi4ub3B0aW9ucyxcbiAgICB9KTtcblxuICAgIGNvbnN0IGxhbWJkYUF1dG9EaXNjb3ZlciA9IG9wdGlvbnMubGFtYmRhQXV0b0Rpc2NvdmVyID8/IHRydWU7XG4gICAgaWYgKGxhbWJkYUF1dG9EaXNjb3Zlcikge1xuICAgICAgbmV3IEF1dG9EaXNjb3Zlcih0aGlzLCB7XG4gICAgICAgIHNyY2RpcjogdGhpcy5zcmNkaXIsXG4gICAgICAgIHRlc3RkaXI6IHRoaXMudGVzdGRpcixcbiAgICAgICAgbGFtYmRhT3B0aW9uczogb3B0aW9ucy5sYW1iZGFPcHRpb25zLFxuICAgICAgICB0c2NvbmZpZ1BhdGg6IHRoaXMudHNjb25maWdEZXYuZmlsZU5hbWUsXG4gICAgICAgIGNka0RlcHM6IHRoaXMuY2RrRGVwcyxcbiAgICAgIH0pO1xuICAgIH1cbiAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcHVibGljIGdldCBjZGtWZXJzaW9uKCkge1xuICAgIHJldHVybiB0aGlzLmNka0RlcHMuY2RrVmVyc2lvbjtcbiAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcHVibGljIGdldCB2ZXJzaW9uKCkge1xuICAgIHJldHVybiB0aGlzLmNka1ZlcnNpb247XG4gIH1cblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICBwdWJsaWMgYWRkQ2RrRGVwZW5kZW5jaWVzKC4uLmRlcHM6IHN0cmluZ1tdKSB7XG4gICAgcmV0dXJuIHRoaXMuY2RrRGVwcy5hZGRWMURlcGVuZGVuY2llcyguLi5kZXBzKTtcbiAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcHVibGljIGFkZENka1Rlc3REZXBlbmRlbmNpZXMoLi4uZGVwczogc3RyaW5nW10pIHtcbiAgICByZXR1cm4gdGhpcy5jZGtEZXBzLmFkZFYxRGV2RGVwZW5kZW5jaWVzKC4uLmRlcHMpO1xuICB9XG59XG5cbmZ1bmN0aW9uIGRldGVybWluZVdvcmtmbG93Q29udGFpbmVySW1hZ2Uob3B0aW9uczogQXdzQ2RrQ29uc3RydWN0TGlicmFyeU9wdGlvbnMsIGNka01ham9yVmVyc2lvbjogbnVtYmVyIHwgdW5kZWZpbmVkKTogc3RyaW5nIHwgdW5kZWZpbmVkIHtcbiAgLy8gaWYgdGhlIHVzZXIgc3BlY2lmaWVzIHRoZSB3b3JrZmxvdyBjb250YWluZXIgaW1hZ2UgZXhwbGljaXRseSwgdXNlIHRoYXRcbiAgaWYgKG9wdGlvbnMud29ya2Zsb3dDb250YWluZXJJbWFnZSkge1xuICAgIHJldHVybiBvcHRpb25zLndvcmtmbG93Q29udGFpbmVySW1hZ2U7XG4gIH1cblxuICAvLyBpZiB0aGUgdXNlciBzcGVjaWZpZXMgbWluaW11bSBub2RlIHZlcnNpb24sIHRoZW4gSnNpaVByb2plY3Qgd2lsbCB0YWtlIGNhcmUgb2ZcbiAgLy8gZGV0ZXJtaW5pbmcgdGhlIHdvcmtmbG93IGNvbnRhaW5lciBpbWFnZSBmcm9tIHRoYXQsIHNvIHdlIHJldHVybiBcInVuZGVmaW5lZFwiXG4gIGlmIChvcHRpb25zLm1pbk5vZGVWZXJzaW9uKSB7XG4gICAgcmV0dXJuIHVuZGVmaW5lZDtcbiAgfVxuXG4gIC8vIG90aGVyd2lzZSwgY2hvb3NlIGEgd29ya2Zsb3cgY29udGFpbmVyIGltYWdlIGJhc2VkIG9uIHRoZSBDREsgdmVyc2lvblxuICBpZiAoY2RrTWFqb3JWZXJzaW9uID09PSAxKSB7XG4gICAgcmV0dXJuICdqc2lpL3N1cGVyY2hhaW46MS1idXN0ZXItc2xpbSc7XG4gIH1cblxuICBpZiAoY2RrTWFqb3JWZXJzaW9uID09PSAyKSB7XG4gICAgcmV0dXJuICdqc2lpL3N1cGVyY2hhaW46MS1idXN0ZXItc2xpbS1ub2RlMTQnO1xuICB9XG5cbiAgcmV0dXJuIHVuZGVmaW5lZDtcbn1cblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG5leHBvcnQgaW50ZXJmYWNlIENvbnN0cnVjdExpYnJhcnlBd3NPcHRpb25zIGV4dGVuZHMgQXdzQ2RrQ29uc3RydWN0TGlicmFyeU9wdGlvbnMgeyB9XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG5leHBvcnQgY2xhc3MgQ29uc3RydWN0TGlicmFyeUF3cyBleHRlbmRzIEF3c0Nka0NvbnN0cnVjdExpYnJhcnkgeyB9XG5cblxuIl19
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DependencyType } from '..';
|
|
2
1
|
import { Component } from '../component';
|
|
2
|
+
import { DependencyType } from '../dependencies';
|
|
3
3
|
import { Project } from '../project';
|
|
4
4
|
/**
|
|
5
5
|
* (experimental) Options for `AwsCdkDeps`.
|
|
@@ -8,27 +8,27 @@ import { Project } from '../project';
|
|
|
8
8
|
*/
|
|
9
9
|
export interface AwsCdkDepsCommonOptions {
|
|
10
10
|
/**
|
|
11
|
-
* (experimental)
|
|
11
|
+
* (experimental) Minimum version of the AWS CDK to depend on.
|
|
12
12
|
*
|
|
13
|
-
* @default "
|
|
13
|
+
* @default "2.1.0"
|
|
14
14
|
* @experimental
|
|
15
15
|
*/
|
|
16
16
|
readonly cdkVersion: string;
|
|
17
17
|
/**
|
|
18
|
-
* (experimental)
|
|
18
|
+
* (experimental) Minimum version of the `constructs` library to depend on.
|
|
19
19
|
*
|
|
20
|
-
* @default - for CDK 1.x the default is "
|
|
21
|
-
*
|
|
20
|
+
* @default - for CDK 1.x the default is "3.2.27", for CDK 2.x the default is
|
|
21
|
+
* "10.0.5".
|
|
22
22
|
* @experimental
|
|
23
23
|
*/
|
|
24
24
|
readonly constructsVersion?: string;
|
|
25
25
|
/**
|
|
26
|
-
* (
|
|
26
|
+
* (experimental) Use pinned version instead of caret version for CDK.
|
|
27
27
|
*
|
|
28
28
|
* You can use this to prevent yarn to mix versions for your CDK dependencies and to prevent auto-updates.
|
|
29
29
|
* If you use experimental features this will let you define the moment you include breaking changes.
|
|
30
30
|
*
|
|
31
|
-
* @
|
|
31
|
+
* @experimental
|
|
32
32
|
*/
|
|
33
33
|
readonly cdkVersionPinning?: boolean;
|
|
34
34
|
/**
|
|
@@ -52,8 +52,9 @@ export interface AwsCdkDepsCommonOptions {
|
|
|
52
52
|
/**
|
|
53
53
|
* (deprecated) Install the @aws-cdk/assert library?
|
|
54
54
|
*
|
|
55
|
-
* @default
|
|
56
|
-
* @deprecated
|
|
55
|
+
* @default - will be included by default for AWS CDK >= 1.0.0 < 2.0.0
|
|
56
|
+
* @deprecated The
|
|
57
|
+
* @aws-cdk /assertions (in V1) and included in `aws-cdk-lib` for V2.
|
|
57
58
|
*/
|
|
58
59
|
readonly cdkAssert?: boolean;
|
|
59
60
|
/**
|
|
@@ -62,7 +63,7 @@ export interface AwsCdkDepsCommonOptions {
|
|
|
62
63
|
* Only needed for CDK 1.x. If using CDK 2.x then
|
|
63
64
|
* assertions is already included in 'aws-cdk-lib'
|
|
64
65
|
*
|
|
65
|
-
* @default
|
|
66
|
+
* @default - will be included by default for AWS CDK >= 1.111.0 < 2.0.0
|
|
66
67
|
* @experimental
|
|
67
68
|
*/
|
|
68
69
|
readonly cdkAssertions?: boolean;
|
|
@@ -99,11 +100,11 @@ export declare class AwsCdkDeps extends Component {
|
|
|
99
100
|
*/
|
|
100
101
|
readonly cdkVersion: string;
|
|
101
102
|
/**
|
|
102
|
-
* (experimental) The
|
|
103
|
+
* (experimental) The minimum version of the AWS CDK (e.g. `2.0.0`).
|
|
103
104
|
*
|
|
104
105
|
* @experimental
|
|
105
106
|
*/
|
|
106
|
-
readonly
|
|
107
|
+
readonly cdkMinimumVersion: string;
|
|
107
108
|
/**
|
|
108
109
|
* (deprecated) Whether CDK dependencies are added as normal dependencies (and peer dependencies).
|
|
109
110
|
*
|
|
@@ -111,7 +112,7 @@ export declare class AwsCdkDeps extends Component {
|
|
|
111
112
|
*/
|
|
112
113
|
readonly cdkDependenciesAsDeps: boolean;
|
|
113
114
|
/**
|
|
114
|
-
* (experimental) The major version of the
|
|
115
|
+
* (experimental) The major version of the AWS CDK (e.g. 1, 2, ...).
|
|
115
116
|
*
|
|
116
117
|
* @experimental
|
|
117
118
|
*/
|
|
@@ -145,7 +146,7 @@ export declare class AwsCdkDeps extends Component {
|
|
|
145
146
|
addV1DevDependencies(...deps: string[]): void;
|
|
146
147
|
private addConstructsDependency;
|
|
147
148
|
/**
|
|
148
|
-
*
|
|
149
|
+
* Adds a dependency on the AWS CDK framework (e.g. `@aws-cdk/core` for V1 or `aws-cdk-lib` for V1).
|
|
149
150
|
*/
|
|
150
151
|
private addFrameworkDependency;
|
|
151
152
|
private addV1AssertionLibraryDependency;
|