diff --git a/packages/cli/src/commands/create-plugin/createPlugin.ts b/packages/cli/src/commands/create-plugin/createPlugin.ts index 5d23de4688..3c92397a3d 100644 --- a/packages/cli/src/commands/create-plugin/createPlugin.ts +++ b/packages/cli/src/commands/create-plugin/createPlugin.ts @@ -25,7 +25,7 @@ import { parseOwnerIds, addCodeownersEntry, getCodeownersFilePath, -} from './lib/codeowners'; +} from 'lib/codeowners'; import { paths } from 'lib/paths'; import { version } from 'lib/version'; import { Task, templatingTask } from 'lib/tasks'; diff --git a/packages/cli/src/commands/remove-plugin/removePlugin.test.ts b/packages/cli/src/commands/remove-plugin/removePlugin.test.ts index 4fa918c9c6..17962d10b9 100644 --- a/packages/cli/src/commands/remove-plugin/removePlugin.test.ts +++ b/packages/cli/src/commands/remove-plugin/removePlugin.test.ts @@ -23,7 +23,7 @@ import { capitalize, createTemporaryPluginFolder, } from '../create-plugin/createPlugin'; -import { addCodeownersEntry } from '../create-plugin/lib/codeowners'; +import { addCodeownersEntry } from 'lib/codeowners'; import { removeReferencesFromAppPackage, removeReferencesFromPluginsFile, diff --git a/packages/cli/src/commands/remove-plugin/removePlugin.ts b/packages/cli/src/commands/remove-plugin/removePlugin.ts index cb583caae2..1b8447fade 100644 --- a/packages/cli/src/commands/remove-plugin/removePlugin.ts +++ b/packages/cli/src/commands/remove-plugin/removePlugin.ts @@ -17,7 +17,7 @@ import fse from 'fs-extra'; import path from 'path'; import chalk from 'chalk'; import inquirer, { Answers, Question } from 'inquirer'; -import { getCodeownersFilePath } from '../create-plugin/lib/codeowners'; +import { getCodeownersFilePath } from 'lib/codeowners'; import { paths } from 'lib/paths'; import { Task } from 'lib/tasks'; // import os from 'os'; diff --git a/packages/cli/src/commands/create-plugin/lib/codeowners.test.ts b/packages/cli/src/lib/codeowners/codeowners.test.ts similarity index 100% rename from packages/cli/src/commands/create-plugin/lib/codeowners.test.ts rename to packages/cli/src/lib/codeowners/codeowners.test.ts diff --git a/packages/cli/src/commands/create-plugin/lib/codeowners.ts b/packages/cli/src/lib/codeowners/codeowners.ts similarity index 100% rename from packages/cli/src/commands/create-plugin/lib/codeowners.ts rename to packages/cli/src/lib/codeowners/codeowners.ts diff --git a/packages/cli/src/lib/codeowners/index.ts b/packages/cli/src/lib/codeowners/index.ts new file mode 100644 index 0000000000..97c613488c --- /dev/null +++ b/packages/cli/src/lib/codeowners/index.ts @@ -0,0 +1,17 @@ +/* + * Copyright 2020 Spotify AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export * from './codeowners';