Skip to content

Commit

Permalink
fix: remove imports from aws-cdk-lib/core
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgrain committed Dec 9, 2021
1 parent 6f75162 commit 68ee09a
Show file tree
Hide file tree
Showing 7 changed files with 840 additions and 781 deletions.
1,609 changes: 834 additions & 775 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/bundler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
DockerImage,
FileSystem,
ILocalBundling,
} from 'aws-cdk-lib/core';
} from 'aws-cdk-lib';
import { BuildFailure, BuildOptions, BuildResult } from './esbuild-types';
import { buildSync } from './esbuild-wrapper';
import { printBuildMessages } from './formatMessages';
Expand Down
2 changes: 1 addition & 1 deletion src/code.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CfnResource, Stack } from 'aws-cdk-lib';
import { ResourceBindOptions } from 'aws-cdk-lib/aws-lambda';
import { Location } from 'aws-cdk-lib/aws-s3';
import { CfnResource, Stack } from 'aws-cdk-lib/core';
import { Construct } from 'constructs';
import {
AssetBaseProps,
Expand Down
2 changes: 1 addition & 1 deletion src/source.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Stack } from 'aws-cdk-lib';
import {
DeploymentSourceContext,
ISource,
SourceConfig,
} from 'aws-cdk-lib/aws-s3-deployment';
import { Stack } from 'aws-cdk-lib/core';
import { Construct } from 'constructs';
import { AssetBaseProps, AssetProps, JavaScriptAsset, TypeScriptAsset } from './asset';
import { EntryPoints } from './bundler';
Expand Down
2 changes: 1 addition & 1 deletion test/code.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {
Runtime as SyntheticsRuntime,
Test,
} from '@aws-cdk/aws-synthetics-alpha';
import { Stack } from 'aws-cdk-lib';
import { Function, Runtime as LambdaRuntime } from 'aws-cdk-lib/aws-lambda';
import { Stack } from 'aws-cdk-lib/core';
import { mocked } from 'ts-jest/utils';
import { JavaScriptCode, TypeScriptCode } from '../src/code';
import { buildSync } from '../src/esbuild-wrapper';
Expand Down
2 changes: 1 addition & 1 deletion test/inline-code.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Stack } from 'aws-cdk-lib/core';
import { Stack } from 'aws-cdk-lib';
import { mocked } from 'ts-jest/utils';
import {
InlineJavaScriptCode,
Expand Down
2 changes: 1 addition & 1 deletion test/source.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { resolve } from 'path';
import { RemovalPolicy, Stack } from 'aws-cdk-lib';
import { Bucket } from 'aws-cdk-lib/aws-s3';
import { BucketDeployment } from 'aws-cdk-lib/aws-s3-deployment';
import { RemovalPolicy, Stack } from 'aws-cdk-lib/core';
import { JavaScriptSource, TypeScriptSource } from '../src/source';

describe('source', () => {
Expand Down

0 comments on commit 68ee09a

Please sign in to comment.