From 3a724a2f2bc31ac50fc2b58bf07b047562cdb41e Mon Sep 17 00:00:00 2001 From: Rico Huijbers Date: Thu, 30 Sep 2021 15:59:20 +0200 Subject: [PATCH] chore(init-templates): fix dependencies in v2 TypeScript templates (#16577) We should not be using `dependencies` in libraries, but `devDependencies` instead. Fixes #16572. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- .../init-templates/v2/lib/typescript/package.template.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/aws-cdk/lib/init-templates/v2/lib/typescript/package.template.json b/packages/aws-cdk/lib/init-templates/v2/lib/typescript/package.template.json index 9d140a074a2ba..b388f5270b769 100644 --- a/packages/aws-cdk/lib/init-templates/v2/lib/typescript/package.template.json +++ b/packages/aws-cdk/lib/init-templates/v2/lib/typescript/package.template.json @@ -11,6 +11,8 @@ "devDependencies": { "@types/jest": "^26.0.10", "@types/node": "10.17.27", + "aws-cdk-lib": "%cdk-version%", + "constructs": "%constructs-version%", "jest": "^26.4.2", "ts-jest": "^26.2.0", "typescript": "~3.9.7" @@ -18,9 +20,5 @@ "peerDependencies": { "aws-cdk-lib": "%cdk-version%", "constructs": "%constructs-version%" - }, - "dependencies": { - "aws-cdk-lib": "%cdk-version%", - "constructs": "%constructs-version%" } }