Skip to content

Commit 546f384

Browse files
committed
refactor(cli): re-organize files
1 parent 30a2a29 commit 546f384

File tree

106 files changed

+227
-232
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+227
-232
lines changed

.projenrc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,8 +821,8 @@ const cli = configureProject(
821821
'<rootDir>/lib/user-input.ts',
822822
'<rootDir>/lib/convert-to-user-input.ts',
823823
],
824-
testEnvironment: './test/jest-bufferedconsole.ts',
825-
setupFilesAfterEnv: ['<rootDir>/test/jest-setup-after-env.ts'],
824+
testEnvironment: './test/_helpers/jest-bufferedconsole.ts',
825+
setupFilesAfterEnv: ['<rootDir>/test/_helpers/jest-setup-after-env.ts'],
826826
},
827827
}),
828828

packages/@aws-cdk/toolkit-lib/lib/api/aws-cdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ export { guessExecutable } from '../../../../aws-cdk/lib/api/cxapp/exec';
3030

3131
// @todo Should not use! investigate how to replace
3232
export { versionNumber } from '../../../../aws-cdk/lib/cli/version';
33-
export { CliIoHost } from '../../../../aws-cdk/lib/toolkit/cli-io-host';
33+
export { CliIoHost } from '../../../../aws-cdk/lib/cli/io-host';

packages/aws-cdk/jest.config.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/aws-cdk/lib/api/aws-auth/awscli-compatible.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { ProxyAgent } from 'proxy-agent';
88
import { makeCachingProvider } from './provider-caching';
99
import type { SdkHttpOptions } from './sdk-provider';
1010
import { readIfPossible } from './util';
11+
import { AuthenticationError } from '../../../../@aws-cdk/tmp-toolkit-helpers/src/api';
1112
import { debug } from '../../logging';
12-
import { AuthenticationError } from '../../toolkit/error';
1313

1414
const DEFAULT_CONNECTION_TIMEOUT = 10000;
1515
const DEFAULT_TIMEOUT = 300000;

packages/aws-cdk/lib/api/aws-auth/credential-plugins.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { inspect } from 'util';
22
import type { CredentialProviderSource, ForReading, ForWriting, PluginProviderResult, SDKv2CompatibleCredentials, SDKv3CompatibleCredentialProvider, SDKv3CompatibleCredentials } from '@aws-cdk/cli-plugin-contract';
33
import type { AwsCredentialIdentity, AwsCredentialIdentityProvider } from '@smithy/types';
44
import { credentialsAboutToExpire, makeCachingProvider } from './provider-caching';
5+
import { AuthenticationError } from '../../../../@aws-cdk/tmp-toolkit-helpers/src/api';
56
import { debug, warning } from '../../logging';
6-
import { AuthenticationError } from '../../toolkit/error';
77
import { formatErrorMessage } from '../../util';
88
import type { Mode } from '../plugin/mode';
99
import { PluginHost } from '../plugin/plugin';

packages/aws-cdk/lib/api/aws-auth/sdk-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import { CredentialPlugins } from './credential-plugins';
1212
import { makeCachingProvider } from './provider-caching';
1313
import { SDK } from './sdk';
1414
import { callTrace, traceMemberMethods } from './tracing';
15+
import { AuthenticationError } from '../../../../@aws-cdk/tmp-toolkit-helpers/src/api';
1516
import { debug, warning } from '../../logging';
16-
import { AuthenticationError } from '../../toolkit/error';
1717
import { formatErrorMessage } from '../../util';
1818
import { Mode } from '../plugin/mode';
1919

packages/aws-cdk/lib/api/aws-auth/sdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ import { cachedAsync } from './cached';
346346
import type { Account } from './sdk-provider';
347347
import { traceMemberMethods } from './tracing';
348348
import { defaultCliUserAgent } from './user-agent';
349+
import { AuthenticationError } from '../../../../@aws-cdk/tmp-toolkit-helpers/src/api';
349350
import { debug } from '../../logging';
350-
import { AuthenticationError } from '../../toolkit/error';
351351
import { formatErrorMessage } from '../../util';
352352

353353
export interface S3ClientOptions {

packages/aws-cdk/lib/api/bootstrap/bootstrap-environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import type * as cxapi from '@aws-cdk/cx-api';
44
import type { BootstrapEnvironmentOptions, BootstrappingParameters } from './bootstrap-props';
55
import { BootstrapStack, bootstrapVersionFromTemplate } from './deploy-bootstrap';
66
import { legacyBootstrapTemplate } from './legacy-template';
7+
import { ToolkitError } from '../../../../@aws-cdk/tmp-toolkit-helpers/src/api';
78
import type { IoHelper } from '../../../../@aws-cdk/tmp-toolkit-helpers/src/api/io/private';
89
import { warn } from '../../cli/messages';
9-
import { ToolkitError } from '../../toolkit/error';
1010
import { bundledPackageRootDir, loadStructuredFile, serializeStructure } from '../../util';
1111
import type { SDK, SdkProvider } from '../aws-auth';
1212
import type { SuccessfulDeployStackResult } from '../deployments';

packages/aws-cdk/lib/api/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Settings } from './settings';
2-
import { ToolkitError } from '../toolkit/error';
2+
import { ToolkitError } from '../../../@aws-cdk/tmp-toolkit-helpers/src/api';
33

44
export { TRANSIENT_CONTEXT_KEY } from './settings';
55
export const PROJECT_CONTEXT = 'cdk.context.json';

packages/aws-cdk/lib/api/cxapp/cloud-assembly.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { type StackDetails } from '@aws-cdk/tmp-toolkit-helpers';
44
import * as chalk from 'chalk';
55
import { minimatch } from 'minimatch';
66
import * as semver from 'semver';
7+
import { AssemblyError, ToolkitError } from '../../../../@aws-cdk/tmp-toolkit-helpers/src/api';
78
import { info } from '../../logging';
8-
import { AssemblyError, ToolkitError } from '../../toolkit/error';
99
import { flatten } from '../../util';
1010

1111
export enum DefaultSelection {

0 commit comments

Comments
 (0)