From 5c2c79af02abe034b1d15ee179c56a45987f006b Mon Sep 17 00:00:00 2001 From: Bo Xiong Date: Mon, 23 Dec 2024 15:04:45 -0800 Subject: [PATCH] feat: Reference aws-cdk-lib and constructs as peer and dev dependencies so that they are not unnecessarily get bundled --- .projen/deps.json | 10 ---------- .projen/tasks.json | 2 +- .projenrc.ts | 2 -- package.json | 4 ++-- 4 files changed, 3 insertions(+), 15 deletions(-) diff --git a/.projen/deps.json b/.projen/deps.json index f774e19a..21f300ca 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -116,16 +116,6 @@ "version": "^10.0.5", "type": "peer" }, - { - "name": "aws-cdk-lib", - "version": "^2.0.0", - "type": "runtime" - }, - { - "name": "constructs", - "version": "^10.0.5", - "type": "runtime" - }, { "name": "got", "type": "runtime" diff --git a/.projen/tasks.json b/.projen/tasks.json index 4c47ec1a..4469a6b7 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -362,7 +362,7 @@ "exec": "yarn install --check-files" }, { - "exec": "yarn upgrade aws-cdk-lib constructs got hpagent" + "exec": "yarn upgrade got hpagent" }, { "exec": "npx projen" diff --git a/.projenrc.ts b/.projenrc.ts index 22bddb9a..493d6654 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -26,8 +26,6 @@ const project = new CdklabsConstructLibrary({ 'hpagent', ], deps: [ - 'aws-cdk-lib@^2.0.0', - 'constructs@^10.0.5', 'got', 'hpagent', ], /* Runtime dependencies of this module. */ diff --git a/package.json b/package.json index 08c6e909..a761fe68 100644 --- a/package.json +++ b/package.json @@ -50,8 +50,10 @@ "@types/node": "^18", "@typescript-eslint/eslint-plugin": "^7", "@typescript-eslint/parser": "^7", + "aws-cdk-lib": "^2.0.0", "cdklabs-projen-project-types": "^0.1.204", "commit-and-tag-version": "^12", + "constructs": "^10.0.5", "eslint": "^8", "eslint-import-resolver-typescript": "^2.7.1", "eslint-plugin-import": "^2.31.0", @@ -72,8 +74,6 @@ "constructs": "^10.0.5" }, "dependencies": { - "aws-cdk-lib": "^2.0.0", - "constructs": "^10.0.5", "got": "^11.8.6", "hpagent": "^0.1.2" },