Move common utilities files' up

Signed-off-by: Min Kim <minkimcello@gmail.com>
This commit is contained in:
Min Kim
2024-12-19 16:31:08 -05:00
parent 1ef678f015
commit 811eda8960
9 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -28,9 +28,9 @@ import {
addCodeownersEntry,
getCodeownersFilePath,
} from '../../lib/codeowners';
import { resolvePackageName } from '../../lib/new/factories/common/util';
import { resolvePackageName } from '../../lib/new/util';
import { executePluginPackageTemplate } from '../../lib/new/factories/common/tasks';
import { executePluginPackageTemplate } from '../../lib/new/tasks';
import {
readCliConfig,
templateSelector,
+1 -1
View File
@@ -24,7 +24,7 @@ import {
moduleIdIdPrompt,
npmRegistryPrompt,
ownerPrompt,
} from '../../lib/new/factories/common/prompts';
} from '../../lib/new/prompts';
import defaultTemplates from '../../../templates/all-default-templates';
import {
@@ -21,7 +21,7 @@ import * as run from '../../lib/run';
import migrate from './migrate';
import { withLogCollector } from '@backstage/test-utils';
import fs from 'fs-extra';
import { expectLogsToMatch } from '../../lib/new/factories/common/testUtils';
import { expectLogsToMatch } from '../../lib/new/testUtils';
// Remove log coloring to simplify log matching
jest.mock('chalk', () => ({
@@ -14,8 +14,8 @@
* limitations under the License.
*/
import { Prompt } from '../../types';
import { parseOwnerIds } from '../../../codeowners';
import { Prompt } from './types';
import { parseOwnerIds } from '../codeowners';
export function pluginIdPrompt(): Prompt<{ id: string }> {
return {
@@ -21,7 +21,7 @@ import {
expectLogsToMatch,
mockPaths,
} from './testUtils';
import { CreateContext } from '../../types';
import { CreateContext } from './types';
import { executePluginPackageTemplate } from './tasks';
import { createMockDirectory } from '@backstage/backend-test-utils';
@@ -17,11 +17,11 @@
import fs from 'fs-extra';
import chalk from 'chalk';
import { resolve as resolvePath, relative as relativePath } from 'path';
import { paths } from '../../../paths';
import { Task, templatingTask } from '../../../tasks';
import { Lockfile } from '../../../versioning';
import { createPackageVersionProvider } from '../../../version';
import { CreateContext } from '../../types';
import { paths } from '../paths';
import { Task, templatingTask } from '../tasks';
import { Lockfile } from '../versioning';
import { createPackageVersionProvider } from '../version';
import { CreateContext } from './types';
export async function executePluginPackageTemplate(
ctx: CreateContext,
@@ -18,7 +18,7 @@
import { WriteStream } from 'tty';
import { resolve as resolvePath } from 'path';
import { paths } from '../../../paths';
import { paths } from '../paths';
export function mockPaths(options: {
ownDir?: string;