From 113ea8fb161444c4f7f200214d5d2e3982ad3806 Mon Sep 17 00:00:00 2001 From: nkomonen-amazon Date: Wed, 11 Dec 2024 10:47:04 -0500 Subject: [PATCH] fix circular dependency This is due to the implicit import of the `index.ts` file in a subfolder, if the specific module is not defined. This updates some paths to point to a specific module so that the index.ts is not used. This stops circular dependency issues Signed-off-by: nkomonen-amazon --- packages/core/src/auth/sso/cache.ts | 2 +- packages/core/src/shared/regions/regionProvider.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/auth/sso/cache.ts b/packages/core/src/auth/sso/cache.ts index 88131fdc8ca..56fccb0d63f 100644 --- a/packages/core/src/auth/sso/cache.ts +++ b/packages/core/src/auth/sso/cache.ts @@ -15,7 +15,7 @@ import { SsoToken, ClientRegistration } from './model' import { DevSettings } from '../../shared/settings' import { onceChanged } from '../../shared/utilities/functionUtils' import globals from '../../shared/extensionGlobals' -import { ToolkitError } from '../../shared' +import { ToolkitError } from '../../shared/errors' interface RegistrationKey { readonly startUrl: string diff --git a/packages/core/src/shared/regions/regionProvider.ts b/packages/core/src/shared/regions/regionProvider.ts index f7ecb2a64be..fed5919645d 100644 --- a/packages/core/src/shared/regions/regionProvider.ts +++ b/packages/core/src/shared/regions/regionProvider.ts @@ -15,7 +15,7 @@ import { AwsContext } from '../awsContext' import { getIdeProperties, isAmazonQ, isCloud9 } from '../extensionUtilities' import { ResourceFetcher } from '../resourcefetcher/resourcefetcher' import { isSsoConnection } from '../../auth/connection' -import { Auth } from '../../auth' +import { Auth } from '../../auth/auth' export const defaultRegion = 'us-east-1' export const defaultPartition = 'aws'