From 1e3998377c814f011f21890adc32a5a3d3df2a83 Mon Sep 17 00:00:00 2001 From: Shiv Lakshminarayan Date: Mon, 27 Jan 2020 13:54:37 -0800 Subject: [PATCH] use fixed dependencies in init templates --- .../app/javascript/package.template.json | 6 +++--- .../lib/init-templates/app/python/setup.template.py | 2 +- .../app/typescript/package.template.json | 6 +++--- .../lib/typescript/package.template.json | 12 ++++++------ .../sample-app/javascript/package.template.json | 12 ++++++------ .../sample-app/python/setup.template.py | 12 ++++++------ .../sample-app/typescript/package.template.json | 12 ++++++------ 7 files changed, 31 insertions(+), 31 deletions(-) diff --git a/packages/aws-cdk/lib/init-templates/app/javascript/package.template.json b/packages/aws-cdk/lib/init-templates/app/javascript/package.template.json index 928d7adcd9108..bec180d29ee60 100644 --- a/packages/aws-cdk/lib/init-templates/app/javascript/package.template.json +++ b/packages/aws-cdk/lib/init-templates/app/javascript/package.template.json @@ -10,11 +10,11 @@ "test": "jest" }, "devDependencies": { - "@aws-cdk/assert": "^%cdk-version%", - "aws-cdk": "^%cdk-version%", + "@aws-cdk/assert": "%cdk-version%", + "aws-cdk": "%cdk-version%", "jest": "^24.9.0" }, "dependencies": { - "@aws-cdk/core": "^%cdk-version%" + "@aws-cdk/core": "%cdk-version%" } } diff --git a/packages/aws-cdk/lib/init-templates/app/python/setup.template.py b/packages/aws-cdk/lib/init-templates/app/python/setup.template.py index e4ce61aac4263..3303427f63d0e 100644 --- a/packages/aws-cdk/lib/init-templates/app/python/setup.template.py +++ b/packages/aws-cdk/lib/init-templates/app/python/setup.template.py @@ -19,7 +19,7 @@ packages=setuptools.find_packages(where="%name.PythonModule%"), install_requires=[ - "aws-cdk.core", + "aws-cdk.core==%cdk-version%", ], python_requires=">=3.6", diff --git a/packages/aws-cdk/lib/init-templates/app/typescript/package.template.json b/packages/aws-cdk/lib/init-templates/app/typescript/package.template.json index a723f2f1b87b1..d0b4c66fa0650 100644 --- a/packages/aws-cdk/lib/init-templates/app/typescript/package.template.json +++ b/packages/aws-cdk/lib/init-templates/app/typescript/package.template.json @@ -11,17 +11,17 @@ "cdk": "cdk" }, "devDependencies": { - "@aws-cdk/assert": "^%cdk-version%", + "@aws-cdk/assert": "%cdk-version%", "@types/jest": "^24.0.22", "@types/node": "10.17.5", "jest": "^24.9.0", "ts-jest": "^24.1.0", - "aws-cdk": "^%cdk-version%", + "aws-cdk": "%cdk-version%", "ts-node": "^8.1.0", "typescript": "~3.7.2" }, "dependencies": { - "@aws-cdk/core": "^%cdk-version%", + "@aws-cdk/core": "%cdk-version%", "source-map-support": "^0.5.16" } } diff --git a/packages/aws-cdk/lib/init-templates/lib/typescript/package.template.json b/packages/aws-cdk/lib/init-templates/lib/typescript/package.template.json index 7632beee7089f..38642c9e2eef4 100644 --- a/packages/aws-cdk/lib/init-templates/lib/typescript/package.template.json +++ b/packages/aws-cdk/lib/init-templates/lib/typescript/package.template.json @@ -9,7 +9,7 @@ "test": "jest" }, "devDependencies": { - "@aws-cdk/assert": "^%cdk-version%", + "@aws-cdk/assert": "%cdk-version%", "@types/jest": "^24.0.22", "@types/node": "10.17.5", "jest": "^24.9.0", @@ -17,12 +17,12 @@ "typescript": "~3.7.2" }, "peerDependencies": { - "@aws-cdk/core": "^%cdk-version%" + "@aws-cdk/core": "%cdk-version%" }, "dependencies": { - "@aws-cdk/aws-sns": "^%cdk-version%", - "@aws-cdk/aws-sns-subscriptions": "^%cdk-version%", - "@aws-cdk/aws-sqs": "^%cdk-version%", - "@aws-cdk/core": "^%cdk-version%" + "@aws-cdk/aws-sns": "%cdk-version%", + "@aws-cdk/aws-sns-subscriptions": "%cdk-version%", + "@aws-cdk/aws-sqs": "%cdk-version%", + "@aws-cdk/core": "%cdk-version%" } } diff --git a/packages/aws-cdk/lib/init-templates/sample-app/javascript/package.template.json b/packages/aws-cdk/lib/init-templates/sample-app/javascript/package.template.json index d2ff5e11a6eec..186c7c79d5a29 100644 --- a/packages/aws-cdk/lib/init-templates/sample-app/javascript/package.template.json +++ b/packages/aws-cdk/lib/init-templates/sample-app/javascript/package.template.json @@ -10,14 +10,14 @@ "test": "jest" }, "devDependencies": { - "@aws-cdk/assert": "^%cdk-version%", - "aws-cdk": "^%cdk-version%", + "@aws-cdk/assert": "%cdk-version%", + "aws-cdk": "%cdk-version%", "jest": "^24.9.0" }, "dependencies": { - "@aws-cdk/aws-sns": "^%cdk-version%", - "@aws-cdk/aws-sns-subscriptions": "^%cdk-version%", - "@aws-cdk/aws-sqs": "^%cdk-version%", - "@aws-cdk/core": "^%cdk-version%" + "@aws-cdk/aws-sns": "%cdk-version%", + "@aws-cdk/aws-sns-subscriptions": "%cdk-version%", + "@aws-cdk/aws-sqs": "%cdk-version%", + "@aws-cdk/core": "%cdk-version%" } } diff --git a/packages/aws-cdk/lib/init-templates/sample-app/python/setup.template.py b/packages/aws-cdk/lib/init-templates/sample-app/python/setup.template.py index f7d9afb7473bc..9e9b137c1014c 100644 --- a/packages/aws-cdk/lib/init-templates/sample-app/python/setup.template.py +++ b/packages/aws-cdk/lib/init-templates/sample-app/python/setup.template.py @@ -19,12 +19,12 @@ packages=setuptools.find_packages(where="%name.PythonModule%"), install_requires=[ - "aws-cdk.core", - "aws-cdk.aws_iam", - "aws-cdk.aws_sqs", - "aws-cdk.aws_sns", - "aws-cdk.aws_sns_subscriptions", - "aws-cdk.aws_s3", + "aws-cdk.core==%cdk-version%", + "aws-cdk.aws_iam==%cdk-version%", + "aws-cdk.aws_sqs==%cdk-version%", + "aws-cdk.aws_sns==%cdk-version%", + "aws-cdk.aws_sns_subscriptions==%cdk-version%", + "aws-cdk.aws_s3==%cdk-version%", ], python_requires=">=3.6", diff --git a/packages/aws-cdk/lib/init-templates/sample-app/typescript/package.template.json b/packages/aws-cdk/lib/init-templates/sample-app/typescript/package.template.json index b6285945b42dd..0b0b5420ee7bb 100644 --- a/packages/aws-cdk/lib/init-templates/sample-app/typescript/package.template.json +++ b/packages/aws-cdk/lib/init-templates/sample-app/typescript/package.template.json @@ -11,8 +11,8 @@ "cdk": "cdk" }, "devDependencies": { - "aws-cdk": "^%cdk-version%", - "@aws-cdk/assert": "^%cdk-version%", + "aws-cdk": "%cdk-version%", + "@aws-cdk/assert": "%cdk-version%", "@types/jest": "^24.0.22", "@types/node": "10.17.5", "jest": "^24.9.0", @@ -21,9 +21,9 @@ "typescript": "~3.7.2" }, "dependencies": { - "@aws-cdk/aws-sns": "^%cdk-version%", - "@aws-cdk/aws-sns-subscriptions": "^%cdk-version%", - "@aws-cdk/aws-sqs": "^%cdk-version%", - "@aws-cdk/core": "^%cdk-version%" + "@aws-cdk/aws-sns": "%cdk-version%", + "@aws-cdk/aws-sns-subscriptions": "%cdk-version%", + "@aws-cdk/aws-sqs": "%cdk-version%", + "@aws-cdk/core": "%cdk-version%" } }