refator(backend-common): extract path utilities to plugin api

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2024-04-30 14:03:56 +02:00
parent a394b66c3e
commit d229dc49ad
47 changed files with 151 additions and 86 deletions
+2 -1
View File
@@ -14,7 +14,8 @@
* limitations under the License.
*/
import { resolveSafeChildPath, UrlReader } from '@backstage/backend-common';
import { UrlReader } from '@backstage/backend-common';
import { resolveSafeChildPath } from '@backstage/backend-plugin-api';
import {
Entity,
getEntitySourceLocation,
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { isChildPath } from '@backstage/backend-common';
import { isChildPath } from '@backstage/backend-plugin-api';
import { Entity } from '@backstage/catalog-model';
import { assertError, ForwardedError } from '@backstage/errors';
import { ScmIntegrationRegistry } from '@backstage/integration';
@@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { PluginEndpointDiscovery } from '@backstage/backend-common';
import {
PluginEndpointDiscovery,
resolvePackagePath,
resolveSafeChildPath,
} from '@backstage/backend-common';
} from '@backstage/backend-plugin-api';
import {
Entity,
CompoundEntityRef,