cli: move codeowners lib into "new" module

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-04-29 11:31:59 +02:00
parent 62f444f69e
commit 89c7d2e91f
5 changed files with 3 additions and 6 deletions
@@ -16,7 +16,7 @@
import fs from 'fs-extra';
import path from 'path';
import { paths } from '../paths';
import { paths } from '../../../../lib/paths';
const TEAM_ID_RE = /^@[-\w]+\/[-\w]+$/;
const USER_ID_RE = /^@[-\w]+$/;
@@ -15,7 +15,7 @@
*/
import { assertError } from '@backstage/errors';
import { addCodeownersEntry } from '../../../../lib/codeowners';
import { addCodeownersEntry } from '../codeowners';
import { Task } from '../../../../lib/tasks';
import {
PortableTemplate,
@@ -15,10 +15,7 @@
*/
import inquirer, { DistinctQuestion } from 'inquirer';
import {
getCodeownersFilePath,
parseOwnerIds,
} from '../../../../lib/codeowners';
import { getCodeownersFilePath, parseOwnerIds } from '../codeowners';
import { paths } from '../../../../lib/paths';
import {
PortableTemplateConfig,