File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1818# Copy the current 'aws-cdk-lib' version out from the monorepo.
1919cdk_version=$( node -p ' require("aws-cdk-lib/package.json").version' )
2020constructs_range=$( node -p ' require("aws-cdk-lib/package.json").peerDependencies.constructs' )
21- echo ' {"aws-cdk-lib": "' " $cdk_version " ' ", "constructs": "' " $constructs_range " ' "}' > lib/init-templates/.init-version.json
21+ # Use caret range for aws-cdk-lib to allow minor and patch updates being installed on cdk init
22+ echo ' {"aws-cdk-lib": "^' " $cdk_version " ' ", "constructs": "' " $constructs_range " ' "}' > lib/init-templates/.init-version.json
2223
2324# Copy the recommended-feature-flags.json file out from aws-cdk-lib.
2425path=$( node -p ' require.resolve("aws-cdk-lib/recommended-feature-flags.json")' )
25- cp $path lib/init-templates/.recommended-feature-flags.json
26+ cp $path lib/init-templates/.recommended-feature-flags.json
You can’t perform that action at this time.
0 commit comments