From bdc49a2ab831707280ffae299993f99f251f27c0 Mon Sep 17 00:00:00 2001 From: Juan Pablo Garcia Ripa Date: Mon, 2 Jan 2023 17:05:53 +0100 Subject: [PATCH] add internals export file Signed-off-by: Juan Pablo Garcia Ripa --- plugins/git-release-manager/api-report.md | 17 ++++------------- plugins/git-release-manager/src/index.ts | 11 ++--------- plugins/git-release-manager/src/internals.ts | 16 ++++++++++++++++ 3 files changed, 22 insertions(+), 22 deletions(-) create mode 100644 plugins/git-release-manager/src/internals.ts diff --git a/plugins/git-release-manager/api-report.md b/plugins/git-release-manager/api-report.md index 90394afdc7..edc2e56ad9 100644 --- a/plugins/git-release-manager/api-report.md +++ b/plugins/git-release-manager/api-report.md @@ -66,7 +66,6 @@ declare namespace components { ResponseStepListItem, }; } -export { components }; declare namespace constants { export { @@ -76,7 +75,6 @@ declare namespace constants { TAG_OBJECT_MESSAGE, }; } -export { constants }; // Warning: (ae-forgotten-export) The symbol "GetBranchResult" needs to be exported by the entry point index.d.ts // Warning: (ae-missing-release-tag) "createMockBranch" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal) @@ -285,20 +283,14 @@ declare namespace helpers { validateTagName, }; } -export { helpers }; // @public (undocumented) const InfoCardPlus: (props: { children?: React_2.ReactNode }) => JSX.Element; -// Warning: (ae-missing-release-tag) "internals" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal) -// -// @public (undocumented) -export const internals: { - components: typeof components; - constants: typeof constants; - helpers: typeof helpers; - testHelpers: typeof testHelpers; -}; +declare namespace internals { + export { components, constants, helpers, testHelpers }; +} +export { internals }; // Warning: (ae-missing-release-tag) "isCalverTagParts" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal) // @@ -725,7 +717,6 @@ const TEST_IDS: { declare namespace testHelpers { export { stats, testHelpers_2 as testHelpers, testIds }; } -export { testHelpers }; declare namespace testHelpers_2 { export { diff --git a/plugins/git-release-manager/src/index.ts b/plugins/git-release-manager/src/index.ts index 7b0949a3f8..e8fa661c21 100644 --- a/plugins/git-release-manager/src/index.ts +++ b/plugins/git-release-manager/src/index.ts @@ -26,16 +26,9 @@ export { gitReleaseManagerApiRef, } from './plugin'; -import { components, constants, helpers, testHelpers } from './plugin'; +import * as internals from './internals'; -export const internals = { - components, - constants, - helpers, - testHelpers, -}; - -export { components, constants, helpers, testHelpers }; +export { internals }; export type { ComponentConfig, diff --git a/plugins/git-release-manager/src/internals.ts b/plugins/git-release-manager/src/internals.ts new file mode 100644 index 0000000000..2cd7863bac --- /dev/null +++ b/plugins/git-release-manager/src/internals.ts @@ -0,0 +1,16 @@ +/* + * Copyright 2023 The Backstage Authors + * + * 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 { components, constants, helpers, testHelpers } from './plugin';