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/'));