cdk command environment settings #179
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The execution environment name is now obtained when executing the cdk command.
This pull request includes several changes to the
cdk
project, focusing on code cleanup, type definition, and configuration updates. The most important changes include removing theCdkStack
class, defining a newTargetEnv
type, and updating thetsconfig.json
file for better code consistency.Code Cleanup:
cdk/lib/cdk-stack.ts
: Removed theCdkStack
class and its associated imports and example resource code.Type Definition:
cdk/lib/util/targetEnv.ts
: Added a newTargetEnv
type and atargetEnv
function to handle environment variableNODE_ENV
and map it to theTargetEnv
type.Configuration Updates:
cdk/tsconfig.json
: Consolidated array formatting in thecompilerOptions
section forlib
andtypeRoots
properties. [1] [2]Related issues
Check List