Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
risu729 committed Dec 28, 2024
1 parent 6480bad commit 0e13a05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
3 changes: 2 additions & 1 deletion lib/modules/manager/mise/backends.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {
createAquaToolConfig,
createCargoToolConfig,
createDotnetToolConfig,
createGemToolConfig,
createGoToolConfig,
createNpmToolConfig,
createPipxToolConfig,
Expand Down Expand Up @@ -95,7 +96,7 @@ describe('modules/manager/mise/backends', () => {

describe('createGemToolConfig()', () => {
it('should create a tooling config', () => {
expect(createGoToolConfig('rubocop')).toStrictEqual({
expect(createGemToolConfig('rubocop')).toStrictEqual({
packageName: 'rubocop',
datasource: 'rubygems',
});
Expand Down
12 changes: 4 additions & 8 deletions lib/modules/manager/mise/backends.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import { GithubReleasesDatasource } from '../../datasource/github-releases';
import { GithubTagsDatasource } from '../../datasource/github-tags';
import { GoDatasource } from '../../datasource/go';
import { NpmDatasource } from '../../datasource/npm';
import { NugetDatasource } from '../../datasource/nuget';
import { PypiDatasource } from '../../datasource/pypi';
import { normalizePythonDepName } from '../../datasource/pypi/common';
import { RubygemsDatasource } from '../../datasource/rubygems';
import type { PackageDependency } from '../types';
import type { MiseToolOptionsSchema } from './schema';
import { NugetDatasource } from '../../datasource/nuget';
import { RubygemsDatasource } from '../../datasource/rubygems';

export type BackendToolingConfig = Omit<PackageDependency, 'depName'> &
Required<
Expand Down Expand Up @@ -92,9 +92,7 @@ export function createCargoToolConfig(
* Create a tooling config for dotnet backend
* @link https://mise.jdx.dev/dev-tools/backends/dotnet.html
*/
export function createDotnetToolConfig(
name: string,
): BackendToolingConfig {
export function createDotnetToolConfig(name: string): BackendToolingConfig {
return {
packageName: name,
datasource: NugetDatasource.id,
Expand All @@ -105,9 +103,7 @@ export function createDotnetToolConfig(
* Create a tooling config for gem backend
* @link https://mise.jdx.dev/dev-tools/backends/gem.html
*/
export function createGemToolConfig(
name: string,
): BackendToolingConfig {
export function createGemToolConfig(name: string): BackendToolingConfig {
return {
packageName: name,
datasource: RubygemsDatasource.id,
Expand Down

0 comments on commit 0e13a05

Please sign in to comment.