Skip to content

Commit db60595

Browse files
authored
chore: remove unused dependencies (#216)
- `glob` and `uuid` ship with types in their latest versions (which we use) - `make-runnable` is an unused dev dependency - `json-diff` and `source-map-support` are unused prod dependencies - We don't need the `CLI_SDK_VERSION` switch anymore, everything is on v3 --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license
1 parent 4566d8d commit db60595

File tree

11 files changed

+34
-138
lines changed

11 files changed

+34
-138
lines changed

.projenrc.ts

+31-49
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,6 @@ const cdkAssets = configureProject(
603603
],
604604
devDeps: [
605605
'@types/archiver',
606-
'@types/glob',
607606
'@types/yargs',
608607
'@types/mime@^2',
609608
'fs-extra',
@@ -699,7 +698,6 @@ const tmpToolkitHelpers = configureProject(
699698
devDeps: [
700699
cdkBuildTools,
701700
'@types/archiver',
702-
'@types/glob',
703701
'@types/semver',
704702
'fast-check',
705703
],
@@ -737,8 +735,6 @@ tmpToolkitHelpers.gitignore.addPatterns('test/**/*.map');
737735

738736
//////////////////////////////////////////////////////////////////////
739737

740-
let CLI_SDK_VERSION: '2' | '3' = ('3' as any);
741-
742738
const cli = configureProject(
743739
new yarn.TypeScriptWorkspace({
744740
...genericCdkProps(),
@@ -756,26 +752,18 @@ const cli = configureProject(
756752
'@octokit/rest',
757753
'@types/archiver',
758754
'@types/fs-extra@^9',
759-
'@types/glob',
760755
'@types/mockery',
761756
'@types/promptly',
762757
'@types/semver',
763758
'@types/sinon',
764-
'@types/source-map-support',
765-
'@types/uuid',
766759
'@types/yargs@^15',
767760
'aws-cdk-lib',
768-
...CLI_SDK_VERSION === '2' ? [
769-
'aws-sdk-mock@^5',
770-
] : [
771-
],
772761
'axios',
773762
'constructs',
774763
'fast-check',
775764
'jest-environment-node',
776765
'jest-mock',
777766
'madge',
778-
'make-runnable',
779767
'nock',
780768
'sinon',
781769
'ts-mock-imports',
@@ -787,41 +775,37 @@ const cli = configureProject(
787775
cxApi,
788776
'@aws-cdk/region-info',
789777
'archiver',
790-
...CLI_SDK_VERSION === '2' ? [
791-
'aws-sdk',
792-
] : [
793-
`@aws-sdk/client-appsync@${CLI_SDK_V3_RANGE}`,
794-
`@aws-sdk/client-cloudformation@${CLI_SDK_V3_RANGE}`,
795-
`@aws-sdk/client-cloudwatch-logs@${CLI_SDK_V3_RANGE}`,
796-
`@aws-sdk/client-cloudcontrol@${CLI_SDK_V3_RANGE}`,
797-
`@aws-sdk/client-codebuild@${CLI_SDK_V3_RANGE}`,
798-
`@aws-sdk/client-ec2@${CLI_SDK_V3_RANGE}`,
799-
`@aws-sdk/client-ecr@${CLI_SDK_V3_RANGE}`,
800-
`@aws-sdk/client-ecs@${CLI_SDK_V3_RANGE}`,
801-
`@aws-sdk/client-elastic-load-balancing-v2@${CLI_SDK_V3_RANGE}`,
802-
`@aws-sdk/client-iam@${CLI_SDK_V3_RANGE}`,
803-
`@aws-sdk/client-kms@${CLI_SDK_V3_RANGE}`,
804-
`@aws-sdk/client-lambda@${CLI_SDK_V3_RANGE}`,
805-
`@aws-sdk/client-route-53@${CLI_SDK_V3_RANGE}`,
806-
`@aws-sdk/client-s3@${CLI_SDK_V3_RANGE}`,
807-
`@aws-sdk/client-secrets-manager@${CLI_SDK_V3_RANGE}`,
808-
`@aws-sdk/client-sfn@${CLI_SDK_V3_RANGE}`,
809-
`@aws-sdk/client-ssm@${CLI_SDK_V3_RANGE}`,
810-
`@aws-sdk/client-sts@${CLI_SDK_V3_RANGE}`,
811-
`@aws-sdk/credential-providers@${CLI_SDK_V3_RANGE}`,
812-
`@aws-sdk/ec2-metadata-service@${CLI_SDK_V3_RANGE}`,
813-
`@aws-sdk/lib-storage@${CLI_SDK_V3_RANGE}`,
814-
'@aws-sdk/middleware-endpoint',
815-
'@aws-sdk/util-retry',
816-
'@aws-sdk/util-waiter',
817-
'@smithy/middleware-endpoint',
818-
'@smithy/shared-ini-file-loader',
819-
'@smithy/property-provider',
820-
'@smithy/types',
821-
'@smithy/util-retry',
822-
'@smithy/util-stream',
823-
'@smithy/util-waiter',
824-
],
778+
`@aws-sdk/client-appsync@${CLI_SDK_V3_RANGE}`,
779+
`@aws-sdk/client-cloudformation@${CLI_SDK_V3_RANGE}`,
780+
`@aws-sdk/client-cloudwatch-logs@${CLI_SDK_V3_RANGE}`,
781+
`@aws-sdk/client-cloudcontrol@${CLI_SDK_V3_RANGE}`,
782+
`@aws-sdk/client-codebuild@${CLI_SDK_V3_RANGE}`,
783+
`@aws-sdk/client-ec2@${CLI_SDK_V3_RANGE}`,
784+
`@aws-sdk/client-ecr@${CLI_SDK_V3_RANGE}`,
785+
`@aws-sdk/client-ecs@${CLI_SDK_V3_RANGE}`,
786+
`@aws-sdk/client-elastic-load-balancing-v2@${CLI_SDK_V3_RANGE}`,
787+
`@aws-sdk/client-iam@${CLI_SDK_V3_RANGE}`,
788+
`@aws-sdk/client-kms@${CLI_SDK_V3_RANGE}`,
789+
`@aws-sdk/client-lambda@${CLI_SDK_V3_RANGE}`,
790+
`@aws-sdk/client-route-53@${CLI_SDK_V3_RANGE}`,
791+
`@aws-sdk/client-s3@${CLI_SDK_V3_RANGE}`,
792+
`@aws-sdk/client-secrets-manager@${CLI_SDK_V3_RANGE}`,
793+
`@aws-sdk/client-sfn@${CLI_SDK_V3_RANGE}`,
794+
`@aws-sdk/client-ssm@${CLI_SDK_V3_RANGE}`,
795+
`@aws-sdk/client-sts@${CLI_SDK_V3_RANGE}`,
796+
`@aws-sdk/credential-providers@${CLI_SDK_V3_RANGE}`,
797+
`@aws-sdk/ec2-metadata-service@${CLI_SDK_V3_RANGE}`,
798+
`@aws-sdk/lib-storage@${CLI_SDK_V3_RANGE}`,
799+
'@aws-sdk/middleware-endpoint',
800+
'@aws-sdk/util-retry',
801+
'@aws-sdk/util-waiter',
802+
'@smithy/middleware-endpoint',
803+
'@smithy/shared-ini-file-loader',
804+
'@smithy/property-provider',
805+
'@smithy/types',
806+
'@smithy/util-retry',
807+
'@smithy/util-stream',
808+
'@smithy/util-waiter',
825809
'camelcase@^6', // Non-ESM
826810
cdkAssets,
827811
// A version that is guaranteed to still work on Node 16
@@ -831,13 +815,11 @@ const cli = configureProject(
831815
'decamelize@^5', // Non-ESM
832816
'fs-extra@^9',
833817
'glob',
834-
'json-diff',
835818
'minimatch',
836819
'p-limit@^3',
837820
'promptly',
838821
'proxy-agent',
839822
'semver',
840-
'source-map-support',
841823
'strip-ansi@^6',
842824
'table',
843825
'uuid',

packages/@aws-cdk/tmp-toolkit-helpers/.projen/deps.json

-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk/tmp-toolkit-helpers/.projen/tasks.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk/tmp-toolkit-helpers/package.json

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/aws-cdk/.projen/deps.json

-24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/aws-cdk/.projen/tasks.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/aws-cdk/package.json

-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cdk-assets/.projen/deps.json

-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cdk-assets/.projen/tasks.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cdk-assets/package.json

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

yarn.lock

-46
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)