From 731b8913cf69bb2a4d7102c7b1781982e4793eba Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 5 Sep 2023 15:36:02 +0200 Subject: [PATCH] cli: rename discovery.ts Co-authored-by: Johan Haals Co-authored-by: Philipp Hugenroth Signed-off-by: Patrik Oldsberg --- packages/cli/src/lib/bundler/bundle.ts | 2 +- .../cli/src/lib/bundler/{discover.ts => packageDetection.ts} | 2 +- packages/cli/src/lib/bundler/server.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename packages/cli/src/lib/bundler/{discover.ts => packageDetection.ts} (98%) diff --git a/packages/cli/src/lib/bundler/bundle.ts b/packages/cli/src/lib/bundler/bundle.ts index 6d5b2ff799..11330df5b2 100644 --- a/packages/cli/src/lib/bundler/bundle.ts +++ b/packages/cli/src/lib/bundler/bundle.ts @@ -27,7 +27,7 @@ import { createConfig, resolveBaseUrl } from './config'; import { BuildOptions } from './types'; import { resolveBundlingPaths } from './paths'; import chalk from 'chalk'; -import { createDetectedModulesEntrypoint } from './discover'; +import { createDetectedModulesEntrypoint } from './packageDetection'; // TODO(Rugvip): Limits from CRA, we might want to tweak these though. const WARN_AFTER_BUNDLE_GZIP_SIZE = 512 * 1024; diff --git a/packages/cli/src/lib/bundler/discover.ts b/packages/cli/src/lib/bundler/packageDetection.ts similarity index 98% rename from packages/cli/src/lib/bundler/discover.ts rename to packages/cli/src/lib/bundler/packageDetection.ts index c30c1131d4..957eb87715 100644 --- a/packages/cli/src/lib/bundler/discover.ts +++ b/packages/cli/src/lib/bundler/packageDetection.ts @@ -19,7 +19,7 @@ import { Config } from '@backstage/config'; import chokidar from 'chokidar'; import fs from 'fs-extra'; import { join as joinPath, resolve as resolvePath } from 'path'; -import { paths as cliPaths } from '../../lib/paths'; +import { paths as cliPaths } from '../paths'; const DETECTED_MODULES_MODULE_NAME = '__backstage-autodetected-plugins__'; diff --git a/packages/cli/src/lib/bundler/server.ts b/packages/cli/src/lib/bundler/server.ts index 70cf1645ba..f566c268f5 100644 --- a/packages/cli/src/lib/bundler/server.ts +++ b/packages/cli/src/lib/bundler/server.ts @@ -31,7 +31,7 @@ import { paths as libPaths } from '../../lib/paths'; import { loadCliConfig } from '../config'; import { Lockfile } from '../versioning'; import { createConfig, resolveBaseUrl } from './config'; -import { createDetectedModulesEntrypoint as createDetectedModulesEntryPoint } from './discover'; +import { createDetectedModulesEntrypoint as createDetectedModulesEntryPoint } from './packageDetection'; import { resolveBundlingPaths } from './paths'; import { ServeOptions } from './types';