import type { Category } from '../../../constants/index.ts'; import { GithubTagsDatasource } from '../../datasource/github-tags/index.ts'; import { NodeVersionDatasource } from '../../datasource/node-version/index.ts'; import { NpmDatasource } from '../../datasource/npm/index.ts'; export { updateArtifacts } from './artifacts.ts'; export { detectGlobalConfig } from './detect.ts'; export { extractAllPackageFiles } from './extract/index.ts'; export { getRangeStrategy } from './range.ts'; export { bumpPackageVersion, updateDependency, updateLockedDependency, } from './update/index.ts'; export const supportsLockFileMaintenance = true; export const lockFileNames = [ 'package-lock.json', 'pnpm-lock.yaml', 'yarn.lock', ]; export const lockFileMaintenanceIsDelegatedToPackageManager = 'Delegated to the underlying package manager CLI - `npm`, `pnpm`, or Yarn - depending on which lock file is present.'; export const displayName = 'npm'; export const url = 'https://docs.npmjs.com'; export const categories: Category[] = ['js']; export const defaultConfig = { managerFilePatterns: [ '/(^|/)package\\.json$/', '/(^|/)pnpm-workspace\\.yaml$/', '/(^|/)\\.yarnrc\\.yml$/', ], digest: { prBodyDefinitions: { Change: '{{#if displayFrom}}`{{{displayFrom}}}` → {{else}}{{#if currentValue}}`{{{currentValue}}}` → {{/if}}{{/if}}{{#if displayTo}}`{{{displayTo}}}`{{else}}`{{{newValue}}}`{{/if}}', }, }, prBodyDefinitions: { Change: "[{{#if displayFrom}}`{{{displayFrom}}}` → {{else}}{{#if currentValue}}`{{{currentValue}}}` → {{/if}}{{/if}}{{#if displayTo}}`{{{displayTo}}}`{{else}}`{{{newValue}}}`{{/if}}]({{#if depName}}https://renovatebot.com/diffs/npm/{{replace '/' '%2f' depName}}/{{{currentVersion}}}/{{{newVersion}}}{{/if}})", }, }; export const supportedDatasources = [ GithubTagsDatasource.id, NpmDatasource.id, NodeVersionDatasource.id, ]; export { knownDepTypes, supportsDynamicDepTypesNote } from './dep-types.ts';