Skip to content

Commit

Permalink
fix circular dependency
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
nkomonen-amazon committed Dec 11, 2024
1 parent b1ada55 commit 113ea8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/auth/sso/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/shared/regions/regionProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 113ea8f

Please sign in to comment.