cli: wrap with underscores
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
committed by
Patrik Oldsberg
parent
7d689d029e
commit
8a8b3c3613
+1
-1
@@ -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<string, any>;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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}];`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user