From d3efab8837bec26dcbbeed7688b50573e5ff7d9a Mon Sep 17 00:00:00 2001 From: Andreas Lindh Date: Fri, 3 Nov 2023 14:42:48 +0100 Subject: [PATCH] fix: bundle semver --- .projen/deps.json | 8 ++++---- .projenrc.js | 2 +- package.json | 3 +++ 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.projen/deps.json b/.projen/deps.json index 2479ad8..3a4ec16 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -103,6 +103,10 @@ "name": "typescript", "type": "build" }, + { + "name": "semver", + "type": "bundled" + }, { "name": "@types/babel__traverse", "version": "7.18.2", @@ -122,10 +126,6 @@ "name": "constructs", "version": "^10.0.5", "type": "peer" - }, - { - "name": "semver", - "type": "runtime" } ], "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." diff --git a/.projenrc.js b/.projenrc.js index 3b58df4..4e1daa9 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -18,7 +18,7 @@ const project = new awscdk.AwsCdkConstructLibrary({ '@aws-cdk/lambda-layer-kubectl-v26', '@aws-cdk/lambda-layer-kubectl-v27', ], - deps: [ + bundledDeps: [ 'semver', ], defaultReleaseBranch: 'main', diff --git a/package.json b/package.json index 8688316..3dc3389 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,9 @@ "dependencies": { "semver": "^7.5.4" }, + "bundledDependencies": [ + "semver" + ], "resolutions": { "@types/babel__traverse": "7.18.2", "@types/prettier": "2.6.0"