Skip to content

Commit

Permalink
import order
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgrain committed May 10, 2023
1 parent 255cf0d commit 3365595
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
10 changes: 5 additions & 5 deletions packages/aws-cdk-lib/aws-codebuild/lib/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ import { CodePipelineArtifacts } from './codepipeline-artifacts';
import { IFileSystemLocation } from './file-location';
import { NoArtifacts } from './no-artifacts';
import { NoSource } from './no-source';
import { runScriptLinuxBuildSpec, S3_BUCKET_ENV, S3_KEY_ENV } from './private/run-script-linux-build-spec';
import { LoggingOptions } from './project-logs';
import { renderReportGroupArn } from './report-group-utils';
import { ISource } from './source';
import { CODEPIPELINE_SOURCE_ARTIFACTS_TYPE, NO_SOURCE_TYPE } from './source-types';
import * as cloudwatch from '../../aws-cloudwatch';
import * as notifications from '../../aws-codestarnotifications';
import * as ec2 from '../../aws-ec2';
Expand All @@ -19,11 +24,6 @@ import * as kms from '../../aws-kms';
import * as s3 from '../../aws-s3';
import * as secretsmanager from '../../aws-secretsmanager';
import { ArnFormat, Aws, Duration, IResource, Lazy, Names, PhysicalName, Reference, Resource, SecretValue, Stack, Token, TokenComparison, Tokenization } from '../../core';
import { runScriptLinuxBuildSpec, S3_BUCKET_ENV, S3_KEY_ENV } from './private/run-script-linux-build-spec';
import { LoggingOptions } from './project-logs';
import { renderReportGroupArn } from './report-group-utils';
import { ISource } from './source';
import { CODEPIPELINE_SOURCE_ARTIFACTS_TYPE, NO_SOURCE_TYPE } from './source-types';

const VPC_POLICY_SYM = Symbol.for('@aws-cdk/aws-codebuild.roleVpcPolicy');

Expand Down
9 changes: 5 additions & 4 deletions packages/aws-cdk-lib/aws-ecs/lib/container-image.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import * as ecr from '../../aws-ecr';
import { DockerImageAsset, TarballImageAsset } from '../../aws-ecr-assets';
/* eslint-disable import/order */
import { Construct } from 'constructs';
import { ContainerDefinition } from './container-definition';
import { CfnTaskDefinition } from './ecs.generated';
import * as ecr from '../../aws-ecr';
import { DockerImageAsset, TarballImageAsset } from '../../aws-ecr-assets';

/**
* Constructs for types of container images
Expand Down Expand Up @@ -94,7 +95,7 @@ export interface ContainerImageConfig {
readonly repositoryCredentials?: CfnTaskDefinition.RepositoryCredentialsProperty;
}

// These imports have to be at the end to prevent circular imports
import { AssetImage, AssetImageProps } from './images/asset-image';
import { EcrImage } from './images/ecr';
import { RepositoryImage, RepositoryImageProps } from './images/repository';

import { RepositoryImage, RepositoryImageProps } from './images/repository';
8 changes: 5 additions & 3 deletions packages/aws-cdk-lib/core/lib/cfn-element.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import * as cxschema from '../../cloud-assembly-schema';
import * as cxapi from '../../cx-api';
/* eslint-disable import/order */
import { Construct, Node } from 'constructs';
import { debugModeEnabled } from './debug';
import { Lazy } from './lazy';
import * as cxschema from '../../cloud-assembly-schema';
import * as cxapi from '../../cx-api';

const CFN_ELEMENT_SYMBOL = Symbol.for('@aws-cdk/core.CfnElement');

Expand Down Expand Up @@ -203,7 +204,8 @@ function notTooLong(x: string) {
return x.slice(0, 47) + '...' + x.slice(-47);
}


// These imports have to be at the end to prevent circular imports
import { CfnReference } from './private/cfn-reference';
import { Stack } from './stack';
import { Token } from './token';

4 changes: 2 additions & 2 deletions packages/aws-cdk-lib/core/lib/stack.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import * as fs from 'fs';
import * as path from 'path';
import * as cxschema from '../../cloud-assembly-schema';
import * as cxapi from '../../cx-api';
import { IConstruct, Construct, Node } from 'constructs';
import * as minimatch from 'minimatch';
import { Annotations } from './annotations';
Expand All @@ -21,6 +19,8 @@ import { CLOUDFORMATION_TOKEN_RESOLVER, CloudFormationLang } from './private/clo
import { LogicalIDs } from './private/logical-id';
import { resolve } from './private/resolve';
import { makeUniqueId } from './private/uniqueid';
import * as cxschema from '../../cloud-assembly-schema';
import * as cxapi from '../../cx-api';

const STACK_SYMBOL = Symbol.for('@aws-cdk/core.Stack');
const MY_STACK_CACHE = Symbol.for('@aws-cdk/core.Stack.myStack');
Expand Down

0 comments on commit 3365595

Please sign in to comment.