@npmcli/template-oss 4.24.4 → 4.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ updates:
5
5
  - package-ecosystem: npm
6
6
  directory: /
7
7
  schedule:
8
- interval: daily
8
+ interval: {{ interval }}
9
9
  target-branch: "{{ branch }}"
10
10
  allow:
11
11
  - dependency-type: direct
@@ -187,6 +187,7 @@ module.exports = {
187
187
  esm: false,
188
188
  updateNpm: true,
189
189
  dependabot: 'increase-if-necessary',
190
+ dependabotInterval: 'daily',
190
191
  unwantedPackages: [
191
192
  'eslint',
192
193
  'eslint-plugin-node',
@@ -4,8 +4,8 @@ const { minimatch } = require('minimatch')
4
4
  const parseDependabotConfig = v => (typeof v === 'string' ? { strategy: v } : (v ?? {}))
5
5
 
6
6
  module.exports = (config, defaultConfig, branches) => {
7
- const { dependabot } = config
8
- const { dependabot: defaultDependabot } = defaultConfig
7
+ const { dependabot, dependabotInterval } = config
8
+ const { dependabot: defaultDependabot, dependabotInterval: defaultInterval } = defaultConfig
9
9
 
10
10
  if (!dependabot) {
11
11
  return false
@@ -15,8 +15,13 @@ module.exports = (config, defaultConfig, branches) => {
15
15
  .filter(b => dependabot[b] !== false)
16
16
  .map(branch => {
17
17
  const isReleaseBranch = minimatch(branch, config.releaseBranch)
18
+
19
+ // Determine the interval to use: branch-specific > package-specific > default
20
+ const interval = parseDependabotConfig(dependabot[branch]).interval || dependabotInterval || defaultInterval
21
+
18
22
  return {
19
23
  branch,
24
+ interval,
20
25
  allowNames: isReleaseBranch ? [NAME] : [],
21
26
  labels: isReleaseBranch ? ['Backport', branch] : [],
22
27
  ...parseDependabotConfig(defaultDependabot),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npmcli/template-oss",
3
- "version": "4.24.4",
3
+ "version": "4.25.0",
4
4
  "description": "templated files used in npm CLI team oss projects",
5
5
  "main": "lib/content/index.js",
6
6
  "bin": {