Skip to content

Commit

Permalink
refactor shared out of cmds
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-bompart committed Feb 6, 2024
1 parent 9b51096 commit 2519b50
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/cli/core/src/commands/ui/create/angular.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
listSearchHubsPrivilege,
} from '@coveo/cli-commons/preconditions/platformPrivilege';
import {Trackable} from '@coveo/cli-commons/preconditions/trackable';
import {promptForSearchHub} from './shared';
import {promptForSearchHub} from '../../../lib/ui/shared';

export default class Angular extends CLICommand {
public static templateName = '@coveo/angular';
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/core/src/commands/ui/create/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
IsNodeVersionInRange,
IsNpxInstalled,
} from '../../../lib/decorators/preconditions';
import {promptForSearchHub} from './shared';
import {promptForSearchHub} from '../../../lib/ui/shared';

type ReactProcessEnv = {
orgId: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/core/src/commands/ui/create/vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
import {cwd} from 'node:process';
import {mkdirSync, readdirSync, statSync, writeFileSync} from 'node:fs';
import dedent from 'ts-dedent';
import {promptForSearchHub} from './shared';
import {promptForSearchHub} from '../../../lib/ui/shared';

export default class Vue extends CLICommand {
public static packageName = '@coveo/create-headless-vue';
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/core/src/lib/atomic/createAtomicProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {getPackageVersion} from '../utils/misc';
import npf from '@coveo/cli-commons/npm/npf';
import {SubprocessError} from '../errors/subprocessError';
import {isErrorLike} from '../utils/errorSchemas';
import {promptForSearchHub} from '../../commands/ui/create/shared';
import {promptForSearchHub} from '../ui/shared';

interface CreateAppOptions {
initializerVersion?: string;
Expand Down
File renamed without changes.

0 comments on commit 2519b50

Please sign in to comment.