Skip to content

Commit

Permalink
fix(cloudfront-signer): add tslib (#5460)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe authored Nov 6, 2023
1 parent 5538f3b commit 54cc5c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cloudfront-signer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 54cc5c4

Please sign in to comment.