diff --git a/packages/cli/src/commands/app/build.ts b/packages/cli/src/commands/app/build.ts index 5dc623831e..d5a01d13a7 100644 --- a/packages/cli/src/commands/app/build.ts +++ b/packages/cli/src/commands/app/build.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { run } from '../../helpers/run'; +import { run } from 'helpers/run'; export default async () => { const args = ['build']; diff --git a/packages/cli/src/commands/app/serve.ts b/packages/cli/src/commands/app/serve.ts index 21241c99e3..25977850a3 100644 --- a/packages/cli/src/commands/app/serve.ts +++ b/packages/cli/src/commands/app/serve.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import { run } from '../../helpers/run'; -import { watchDeps } from '../watch-deps'; +import { run } from 'helpers/run'; +import { watchDeps } from 'commands/watch-deps'; export default async () => { const args = ['start']; diff --git a/packages/cli/src/commands/build-cache/cache.ts b/packages/cli/src/commands/build-cache/cache.ts index 464071c95f..db0aa940ad 100644 --- a/packages/cli/src/commands/build-cache/cache.ts +++ b/packages/cli/src/commands/build-cache/cache.ts @@ -16,10 +16,10 @@ import fs from 'fs-extra'; import { resolve as resolvePath, relative as relativePath } from 'path'; -import { runPlain, runCheck } from '../../helpers/run'; +import { runPlain, runCheck } from 'helpers/run'; import { Options } from './options'; import { extractArchive, createArchive } from './archive'; -import { paths } from '../../helpers/paths'; +import { paths } from 'helpers/paths'; const INFO_FILE = '.backstage-build-cache'; diff --git a/packages/cli/src/commands/build-cache/index.ts b/packages/cli/src/commands/build-cache/index.ts index ab8984ecc3..70033097e5 100644 --- a/packages/cli/src/commands/build-cache/index.ts +++ b/packages/cli/src/commands/build-cache/index.ts @@ -15,7 +15,7 @@ */ import { Command } from 'commander'; -import { run } from '../../helpers/run'; +import { run } from 'helpers/run'; import { Cache } from './cache'; import { parseOptions } from './options'; diff --git a/packages/cli/src/commands/build-cache/options.ts b/packages/cli/src/commands/build-cache/options.ts index ae5404bb9f..523d5fc7e6 100644 --- a/packages/cli/src/commands/build-cache/options.ts +++ b/packages/cli/src/commands/build-cache/options.ts @@ -16,7 +16,7 @@ import { resolve as resolvePath } from 'path'; import { Command } from 'commander'; -import { paths } from '../../helpers/paths'; +import { paths } from 'helpers/paths'; const DEFAULT_MAX_ENTRIES = 10; diff --git a/packages/cli/src/commands/create-app/createApp.ts b/packages/cli/src/commands/create-app/createApp.ts index 03f571fed5..ddbbf8e4f2 100644 --- a/packages/cli/src/commands/create-app/createApp.ts +++ b/packages/cli/src/commands/create-app/createApp.ts @@ -21,8 +21,8 @@ import inquirer, { Answers, Question } from 'inquirer'; import { exec as execCb } from 'child_process'; import { resolve as resolvePath } from 'path'; import os from 'os'; -import { Task, templatingTask } from '../../helpers/tasks'; -import { paths } from '../../helpers/paths'; +import { Task, templatingTask } from 'helpers/tasks'; +import { paths } from 'helpers/paths'; const exec = promisify(execCb); async function checkExists(rootDir: string, name: string) { diff --git a/packages/cli/src/commands/create-plugin/createPlugin.ts b/packages/cli/src/commands/create-plugin/createPlugin.ts index 027a53f2b4..7f05519cd2 100644 --- a/packages/cli/src/commands/create-plugin/createPlugin.ts +++ b/packages/cli/src/commands/create-plugin/createPlugin.ts @@ -26,8 +26,8 @@ import { addCodeownersEntry, getCodeownersFilePath, } from './lib/codeowners'; -import { paths } from '../../helpers/paths'; -import { Task, templatingTask } from '../../helpers/tasks'; +import { paths } from 'helpers/paths'; +import { Task, templatingTask } from 'helpers/tasks'; const exec = promisify(execCb); async function checkExists(rootDir: string, id: string) { diff --git a/packages/cli/src/commands/lint.ts b/packages/cli/src/commands/lint.ts index 3fbc30f897..d1b5a361a4 100644 --- a/packages/cli/src/commands/lint.ts +++ b/packages/cli/src/commands/lint.ts @@ -15,7 +15,7 @@ */ import { Command } from 'commander'; -import { run } from '../helpers/run'; +import { run } from 'helpers/run'; export default async (cmd: Command) => { const args = ['lint', '--max-warnings=0', '--format=codeframe']; diff --git a/packages/cli/src/commands/plugin/rollup.config.ts b/packages/cli/src/commands/plugin/rollup.config.ts index ba2e95cb39..d1f251665f 100644 --- a/packages/cli/src/commands/plugin/rollup.config.ts +++ b/packages/cli/src/commands/plugin/rollup.config.ts @@ -22,7 +22,7 @@ import postcss from 'rollup-plugin-postcss'; import imageFiles from 'rollup-plugin-image-files'; import json from '@rollup/plugin-json'; import { RollupWatchOptions } from 'rollup'; -import { paths } from '../../helpers/paths'; +import { paths } from 'helpers/paths'; export default { input: 'src/index.ts', diff --git a/packages/cli/src/commands/plugin/testCommand.ts b/packages/cli/src/commands/plugin/testCommand.ts index 0bc35e13c1..a1c4572422 100644 --- a/packages/cli/src/commands/plugin/testCommand.ts +++ b/packages/cli/src/commands/plugin/testCommand.ts @@ -15,7 +15,7 @@ */ import { Command } from 'commander'; -import { run } from '../../helpers/run'; +import { run } from 'helpers/run'; export default async (cmd: Command) => { const args = ['test']; diff --git a/packages/cli/src/commands/testCommand.ts b/packages/cli/src/commands/testCommand.ts index 3fc87b158b..10a4fb54f3 100644 --- a/packages/cli/src/commands/testCommand.ts +++ b/packages/cli/src/commands/testCommand.ts @@ -15,8 +15,8 @@ */ import { Command } from 'commander'; -import { run } from '../helpers/run'; -import { paths } from '../helpers/paths'; +import { run } from 'helpers/run'; +import { paths } from 'helpers/paths'; export default async (cmd: Command) => { const args = ['test', '--config', paths.resolveOwn('config/jest.js')]; diff --git a/packages/cli/src/commands/watch-deps/index.ts b/packages/cli/src/commands/watch-deps/index.ts index 7ffa67ed7a..0c0141ef73 100644 --- a/packages/cli/src/commands/watch-deps/index.ts +++ b/packages/cli/src/commands/watch-deps/index.ts @@ -21,8 +21,8 @@ import { getPackageDeps } from './packages'; import { startWatcher, startPackageWatcher } from './watcher'; import { startCompiler } from './compiler'; import { startChild } from './child'; -import { waitForExit } from '../../helpers/run'; -import { paths } from '../../helpers/paths'; +import { waitForExit } from 'helpers/run'; +import { paths } from 'helpers/paths'; const PACKAGE_BLACKLIST = [ // We never want to watch for changes in the cli, but all packages will depend on it. diff --git a/packages/cli/src/commands/watch-deps/packages.ts b/packages/cli/src/commands/watch-deps/packages.ts index e80de3651d..f8ad935ec4 100644 --- a/packages/cli/src/commands/watch-deps/packages.ts +++ b/packages/cli/src/commands/watch-deps/packages.ts @@ -16,7 +16,7 @@ import fs from 'fs'; import { promisify } from 'util'; -import { paths } from '../../helpers/paths'; +import { paths } from 'helpers/paths'; const readFile = promisify(fs.readFile);