refactor: apply review suggestions

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2024-05-13 17:34:32 +02:00
parent f09848a2ef
commit d871c5627a
4 changed files with 28 additions and 40 deletions
-28
View File
@@ -20,34 +20,6 @@ import {
isChildPath as _isChildPath,
} from '@backstage/backend-plugin-api';
import {
overridePackagePathResolution as _overridePackagePathResolution,
OverridePackagePathResolutionOptions as _OverridePackagePathResolutionOptions,
PackagePathResolutionOverride as _PackagePathResolutionOverride,
} from '@backstage/backend-plugin-api/testUtils';
/**
* @public
* @deprecated This function is deprecated and will be removed in future release, see https://github.com/backstage/backstage/issues/24493.
* Please use the `overridePackagePathResolution` function from the `@backstage/backend-plugin-api/testUtils` package instead.
*/
export const overridePackagePathResolution = _overridePackagePathResolution;
/**
* @public
* @deprecated This type is deprecated and will be removed in a future release, see https://github.com/backstage/backstage/issues/24493.
* Please use the `OverridePackagePathResolutionOptions` type from the `@backstage/backend-plugin-api/testUtils` package instead.
*/
export type OverridePackagePathResolutionOptions =
_OverridePackagePathResolutionOptions;
/**
* @public
* @deprecated This type is deprecated and will be removed in a future release, see https://github.com/backstage/backstage/issues/24493.
* Please use the `PackagePathResolutionOverride` type from the `@backstage/backend-plugin-api/testUtils` package instead.
*/
export type PackagePathResolutionOverride = _PackagePathResolutionOverride;
/**
* @public
* @deprecated This type is deprecated and will be removed in a future release, see https://github.com/backstage/backstage/issues/24493.
+1 -5
View File
@@ -25,11 +25,7 @@ export type { LegacyCreateRouter } from './legacy';
export * from './auth';
export * from './cache';
export { loadBackendConfig } from './config';
export {
resolvePackagePath,
resolveSafeChildPath,
isChildPath,
} from './deprecated';
export * from './deprecated';
export * from './database';
export * from './discovery';
export * from './hot';
+27 -5
View File
@@ -14,8 +14,30 @@
* limitations under the License.
*/
export {
overridePackagePathResolution,
type OverridePackagePathResolutionOptions,
type PackagePathResolutionOverride,
} from './deprecated';
import {
overridePackagePathResolution as _overridePackagePathResolution,
OverridePackagePathResolutionOptions as _OverridePackagePathResolutionOptions,
PackagePathResolutionOverride as _PackagePathResolutionOverride,
} from '@backstage/backend-plugin-api/testUtils';
/**
* @public
* @deprecated This function is deprecated and will be removed in future release, see https://github.com/backstage/backstage/issues/24493.
* Please use the `overridePackagePathResolution` function from the `@backstage/backend-plugin-api/testUtils` package instead.
*/
export const overridePackagePathResolution = _overridePackagePathResolution;
/**
* @public
* @deprecated This type is deprecated and will be removed in a future release, see https://github.com/backstage/backstage/issues/24493.
* Please use the `OverridePackagePathResolutionOptions` type from the `@backstage/backend-plugin-api/testUtils` package instead.
*/
export type OverridePackagePathResolutionOptions =
_OverridePackagePathResolutionOptions;
/**
* @public
* @deprecated This type is deprecated and will be removed in a future release, see https://github.com/backstage/backstage/issues/24493.
* Please use the `PackagePathResolutionOverride` type from the `@backstage/backend-plugin-api/testUtils` package instead.
*/
export type PackagePathResolutionOverride = _PackagePathResolutionOverride;
@@ -14,8 +14,6 @@
* limitations under the License.
*/
// TODO: Remove this relative import when extrating the path utilities to this package
// eslint-disable-next-line @backstage/no-relative-monorepo-imports
import { packagePathMocks } from './paths';
import { posix as posixPath, resolve as resolvePath } from 'path';