From afacb0f735961cace66ec512c1bd865604bbb28c Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Thu, 8 Feb 2024 08:21:11 -0800 Subject: [PATCH] chore: enable and config dependabot (#56) --- .github/dependabot.yml | 17 +++++++++++++++++ scripts/update-otel-deps.js | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..bdaa352a --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,17 @@ +version: 2 +updates: + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "weekly" + open-pull-requests-limit: 10 + reviewers: + - "elastic/apm-agent-node-js" + groups: + otel: + patterns: + - "@opentelemetry/*" + eslint: + dependency-type: "development" + patterns: + - "eslint*" diff --git a/scripts/update-otel-deps.js b/scripts/update-otel-deps.js index b2397867..7a329ebe 100755 --- a/scripts/update-otel-deps.js +++ b/scripts/update-otel-deps.js @@ -20,7 +20,7 @@ function updateOTelDeps(workspace) { const pkg = require( path.resolve(__dirname, '..', workspace, 'package.json') ); - const otelDeps = Object.keys(pkg.dependencies) + const otelDeps = Object.keys(pkg.dependencies || {}) .concat(Object.keys(pkg.devDependencies || {})) .filter((d) => d.startsWith('@opentelemetry/'));