Move common utilities files' up
Signed-off-by: Min Kim <minkimcello@gmail.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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', () => ({
|
||||
|
||||
+2
-2
@@ -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 {
|
||||
+1
-1
@@ -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';
|
||||
|
||||
+5
-5
@@ -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,
|
||||
+1
-1
@@ -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;
|
||||
Reference in New Issue
Block a user