chore: Remove deprecated imports
Signed-off-by: Adam Harvey <adaharve@cisco.com>
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { SingleHostDiscovery } from '@backstage/backend-common';
|
||||
import { HostDiscovery } from '@backstage/backend-common';
|
||||
import { Publisher } from '@backstage/plugin-techdocs-node';
|
||||
import { OptionValues } from 'commander';
|
||||
import { createLogger } from '../../lib/utility';
|
||||
@@ -24,7 +24,7 @@ export default async function migrate(opts: OptionValues) {
|
||||
const logger = createLogger({ verbose: opts.verbose });
|
||||
|
||||
const config = PublisherConfig.getValidConfig(opts);
|
||||
const discovery = SingleHostDiscovery.fromConfig(config);
|
||||
const discovery = HostDiscovery.fromConfig(config);
|
||||
const publisher = await Publisher.fromConfig(config, { logger, discovery });
|
||||
|
||||
if (!publisher.migrateDocsCase) {
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
import { resolve } from 'path';
|
||||
import { OptionValues } from 'commander';
|
||||
import { createLogger } from '../../lib/utility';
|
||||
import { SingleHostDiscovery } from '@backstage/backend-common';
|
||||
import { HostDiscovery } from '@backstage/backend-common';
|
||||
import { Publisher } from '@backstage/plugin-techdocs-node';
|
||||
import { Entity } from '@backstage/catalog-model';
|
||||
import { PublisherConfig } from '../../lib/PublisherConfig';
|
||||
@@ -26,7 +26,7 @@ export default async function publish(opts: OptionValues): Promise<any> {
|
||||
const logger = createLogger({ verbose: opts.verbose });
|
||||
|
||||
const config = PublisherConfig.getValidConfig(opts);
|
||||
const discovery = SingleHostDiscovery.fromConfig(config);
|
||||
const discovery = HostDiscovery.fromConfig(config);
|
||||
const publisher = await Publisher.fromConfig(config, { logger, discovery });
|
||||
|
||||
// Check that the publisher's underlying storage is ready and available.
|
||||
|
||||
Reference in New Issue
Block a user