Skip to content

Commit 3f7b8a3

Browse files
committed
refactor(cli): re-organize files
1 parent 814c45d commit 3f7b8a3

File tree

105 files changed

+226
-231
lines changed

Some content is hidden

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

105 files changed

+226
-231
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/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
@@ -3,7 +3,7 @@ import type { CredentialProviderSource, ForReading, ForWriting, PluginProviderRe
33
import type { AwsCredentialIdentity, AwsCredentialIdentityProvider } from '@smithy/types';
44
import { credentialsAboutToExpire, makeCachingProvider } from './provider-caching';
55
import { debug, warning } from '../../logging';
6-
import { AuthenticationError } from '../../toolkit/error';
6+
import { AuthenticationError } from '../../../../@aws-cdk/tmp-toolkit-helpers/src/api';
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
@@ -347,7 +347,7 @@ import type { Account } from './sdk-provider';
347347
import { traceMemberMethods } from './tracing';
348348
import { defaultCliUserAgent } from './user-agent';
349349
import { debug } from '../../logging';
350-
import { AuthenticationError } from '../../toolkit/error';
350+
import { AuthenticationError } from '../../../../@aws-cdk/tmp-toolkit-helpers/src/api';
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
@@ -5,7 +5,7 @@ import * as chalk from 'chalk';
55
import { minimatch } from 'minimatch';
66
import * as semver from 'semver';
77
import { info } from '../../logging';
8-
import { AssemblyError, ToolkitError } from '../../toolkit/error';
8+
import { AssemblyError, ToolkitError } from '../../../../@aws-cdk/tmp-toolkit-helpers/src/api';
99
import { flatten } from '../../util';
1010

1111
export enum DefaultSelection {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { CloudAssembly } from './cloud-assembly';
33
import type { Configuration } from '../../cli/user-configuration';
44
import * as contextproviders from '../../context-providers';
55
import { debug } from '../../logging';
6-
import { ToolkitError } from '../../toolkit/error';
6+
import { ToolkitError } from '../../../../@aws-cdk/tmp-toolkit-helpers/src/api';
77
import type { SdkProvider } from '../aws-auth';
88

99
/**

0 commit comments

Comments
 (0)