diff --git a/packages/autodetect/src/autodetect-plugins.d.ts b/packages/autodetect/src/autodetect-plugins.d.ts index 5eb19dee39..a5af550743 100644 --- a/packages/autodetect/src/autodetect-plugins.d.ts +++ b/packages/autodetect/src/autodetect-plugins.d.ts @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -declare module 'backstage-autodetected-plugins' { +declare module '__backstage-autodetected-plugins__' { type DetectedModule = { name: string; module: Record; diff --git a/packages/autodetect/src/index.ts b/packages/autodetect/src/index.ts index 833b9bad7c..67c3251290 100644 --- a/packages/autodetect/src/index.ts +++ b/packages/autodetect/src/index.ts @@ -17,7 +17,7 @@ import { BackstagePlugin } from '@backstage/core-plugin-api'; // eslint-disable-next-line @backstage/no-undeclared-imports -import { modules, DetectedModule } from 'backstage-autodetected-plugins'; +import { modules, DetectedModule } from '__backstage-autodetected-plugins__'; /** * @public diff --git a/packages/cli/src/lib/bundler/discover.ts b/packages/cli/src/lib/bundler/discover.ts index 4de408d6c7..03de8d24c4 100644 --- a/packages/cli/src/lib/bundler/discover.ts +++ b/packages/cli/src/lib/bundler/discover.ts @@ -33,7 +33,7 @@ export async function writeDetectedPluginsModule(options: Options) { path.join( cliPaths.targetRoot, 'node_modules', - 'backstage-autodetected-plugins.js', + '__backstage-autodetected-plugins__.js', ), `export const modules = [${requirePackageScript}];`, );