cli: move yarn utils into versioning lib

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-04-29 11:36:16 +02:00
parent 89c7d2e91f
commit 3743ac12da
3 changed files with 3 additions and 3 deletions
@@ -15,7 +15,7 @@
*/
import * as runObj from '../run';
import * as yarn from '../yarn';
import * as yarn from './yarn';
import { fetchPackageInfo, mapDependencies } from './packages';
import { NotFoundError } from '../errors';
import { createMockDirectory } from '@backstage/backend-test-utils';
@@ -27,7 +27,7 @@ jest.mock('../run', () => {
};
});
jest.mock('../yarn', () => {
jest.mock('./yarn', () => {
return {
detectYarnVersion: jest.fn(),
};
+1 -1
View File
@@ -17,7 +17,7 @@
import { minimatch } from 'minimatch';
import { getPackages } from '@manypkg/get-packages';
import { NotFoundError } from '../errors';
import { detectYarnVersion } from '../yarn';
import { detectYarnVersion } from './yarn';
import { execFile } from '../run';
const DEP_TYPES = [