From 54cc5c4b39209c21564f414e46a02e9f3c690138 Mon Sep 17 00:00:00 2001 From: George Fu Date: Mon, 6 Nov 2023 15:48:46 -0500 Subject: [PATCH] fix(cloudfront-signer): add tslib (#5460) --- packages/cloudfront-signer/package.json | 3 ++- .../runtime-dependency-version-check/check-dependencies.js | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/cloudfront-signer/package.json b/packages/cloudfront-signer/package.json index a73fd95110de..298b728dd48f 100644 --- a/packages/cloudfront-signer/package.json +++ b/packages/cloudfront-signer/package.json @@ -21,7 +21,8 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/url-parser": "^2.0.12" + "@smithy/url-parser": "^2.0.12", + "tslib": "^2.5.0" }, "devDependencies": { "@tsconfig/recommended": "1.0.1", diff --git a/scripts/runtime-dependency-version-check/check-dependencies.js b/scripts/runtime-dependency-version-check/check-dependencies.js index 866045712046..24c5697fe495 100644 --- a/scripts/runtime-dependency-version-check/check-dependencies.js +++ b/scripts/runtime-dependency-version-check/check-dependencies.js @@ -23,6 +23,10 @@ const walk = require("../utils/walk"); const srcPath = path.join(packages, folder, "src"); const pkgJson = require(pkgJsonPath); + if (!pkgJson.dependencies.tslib) { + errors.push(`Missing tslib in ${pkgJson.name}`); + } + for await (const file of walk(srcPath, ["node_modules"])) { const contents = fs.readFileSync(file);