@@ -173,7 +173,6 @@ function transitiveFeaturesAndFixes(thisPkg: string, depPkgs: string[]) {
173173function transitiveToolkitPackages ( thisPkg : string ) {
174174 const toolkitPackages = [
175175 'aws-cdk' ,
176- '@aws-cdk/tmp-toolkit-helpers' ,
177176 '@aws-cdk/cloud-assembly-schema' ,
178177 '@aws-cdk/cloudformation-diff' ,
179178 '@aws-cdk/toolkit-lib' ,
@@ -700,135 +699,6 @@ cdkAssets.eslint?.addRules({ 'jest/no-export': ['off'] });
700699
701700//////////////////////////////////////////////////////////////////////
702701
703- const tmpToolkitHelpers = configureProject (
704- new yarn . TypeScriptWorkspace ( {
705- ...genericCdkProps ( {
706- private : true ,
707- } ) ,
708- parent : repo ,
709- name : '@aws-cdk/tmp-toolkit-helpers' ,
710- description : 'A temporary package to hold code shared between aws-cdk and @aws-cdk/toolkit-lib' ,
711- devDeps : [
712- '@types/archiver' ,
713- '@types/semver' ,
714- 'aws-sdk-client-mock' ,
715- 'aws-sdk-client-mock-jest' ,
716- 'fast-check' ,
717- 'nock' ,
718- '@smithy/util-stream' ,
719- 'xml-js' ,
720- ] ,
721- deps : [
722- cloudAssemblySchema . name ,
723- cloudFormationDiff ,
724- cxApi ,
725- `@aws-sdk/client-appsync@${ CLI_SDK_V3_RANGE } ` ,
726- `@aws-sdk/client-cloudcontrol@${ CLI_SDK_V3_RANGE } ` ,
727- `@aws-sdk/client-cloudformation@${ CLI_SDK_V3_RANGE } ` ,
728- `@aws-sdk/client-cloudwatch-logs@${ CLI_SDK_V3_RANGE } ` ,
729- `@aws-sdk/client-codebuild@${ CLI_SDK_V3_RANGE } ` ,
730- `@aws-sdk/client-ec2@${ CLI_SDK_V3_RANGE } ` ,
731- `@aws-sdk/client-ecr@${ CLI_SDK_V3_RANGE } ` ,
732- `@aws-sdk/client-ecs@${ CLI_SDK_V3_RANGE } ` ,
733- `@aws-sdk/client-elastic-load-balancing-v2@${ CLI_SDK_V3_RANGE } ` ,
734- `@aws-sdk/client-iam@${ CLI_SDK_V3_RANGE } ` ,
735- `@aws-sdk/client-kms@${ CLI_SDK_V3_RANGE } ` ,
736- `@aws-sdk/client-lambda@${ CLI_SDK_V3_RANGE } ` ,
737- `@aws-sdk/client-route-53@${ CLI_SDK_V3_RANGE } ` ,
738- `@aws-sdk/client-s3@${ CLI_SDK_V3_RANGE } ` ,
739- `@aws-sdk/client-secrets-manager@${ CLI_SDK_V3_RANGE } ` ,
740- `@aws-sdk/client-sfn@${ CLI_SDK_V3_RANGE } ` ,
741- `@aws-sdk/client-ssm@${ CLI_SDK_V3_RANGE } ` ,
742- `@aws-sdk/client-sts@${ CLI_SDK_V3_RANGE } ` ,
743- `@aws-sdk/credential-providers@${ CLI_SDK_V3_RANGE } ` ,
744- `@aws-sdk/lib-storage@${ CLI_SDK_V3_RANGE } ` ,
745- `@aws-sdk/ec2-metadata-service@${ CLI_SDK_V3_RANGE } ` ,
746- '@smithy/middleware-endpoint' ,
747- '@smithy/node-http-handler' ,
748- '@smithy/property-provider' ,
749- '@smithy/shared-ini-file-loader' ,
750- '@smithy/types' ,
751- '@smithy/util-retry' ,
752- '@smithy/util-waiter' ,
753- cdkAssets ,
754- 'archiver' ,
755- 'chalk@4' ,
756- 'fs-extra@^9' ,
757- 'glob' ,
758- 'minimatch' ,
759- 'p-limit@^3' ,
760- 'promptly' , // @todo remove this should only be in CLI
761- 'proxy-agent' , // @todo remove this should only be in CLI
762- 'semver' ,
763- 'uuid' ,
764- 'wrap-ansi@^7' , // Last non-ESM version
765- 'yaml@^1' ,
766- ] ,
767-
768- tsconfig : {
769- compilerOptions : {
770- ...defaultTsOptions ,
771- target : 'es2022' ,
772- lib : [ 'es2022' , 'esnext.disposable' , 'dom' ] ,
773- module : 'NodeNext' ,
774-
775- // Temporarily, because it makes it impossible for us to use @internal functions
776- // from other packages. Annoyingly, VSCode won't show an error if you use @internal
777- // because it looks at the .ts, but the compilation will fail because it will use
778- // the .d.ts.
779- stripInternal : false ,
780- } ,
781- } ,
782-
783- jestOptions : jestOptionsForProject ( {
784- jestConfig : {
785- coverageThreshold : {
786- // We want to improve our test coverage
787- // DO NOT LOWER THESE VALUES!
788- // If you need to break glass, open an issue to re-up the values with additional test coverage
789- statements : 70 ,
790- branches : 70 ,
791- functions : 70 ,
792- lines : 70 ,
793- } ,
794- // We have many tests here that commonly time out
795- testTimeout : 30_000 ,
796- testEnvironment : './test/_helpers/jest-bufferedconsole.ts' ,
797- setupFilesAfterEnv : [ '<rootDir>/test/_helpers/jest-setup-after-env.ts' ] ,
798- } ,
799- } ) ,
800- } ) ,
801- ) ;
802-
803- new TypecheckTests ( tmpToolkitHelpers ) ;
804-
805- // Prevent imports of private API surface
806- tmpToolkitHelpers . package . addField ( 'exports' , {
807- '.' : './lib/index.js' ,
808- './package.json' : './package.json' ,
809- './api' : './lib/api/index.js' ,
810- './util' : './lib/util/index.js' ,
811- } ) ;
812-
813- tmpToolkitHelpers . eslint ?. addRules ( {
814- '@cdklabs/no-throw-default-error' : 'error' ,
815- } ) ;
816- tmpToolkitHelpers . eslint ?. addOverride ( {
817- files : [ './test/**' ] ,
818- rules : {
819- '@cdklabs/no-throw-default-error' : 'off' ,
820- } ,
821- } ) ;
822-
823- tmpToolkitHelpers . gitignore . addPatterns ( 'test/**/*.map' ) ;
824-
825- tmpToolkitHelpers . npmignore ?. addPatterns (
826- '!lib/api/bootstrap/bootstrap-template.yaml' ,
827- ) ;
828- tmpToolkitHelpers . postCompileTask . exec ( 'mkdir -p ./lib/api/bootstrap/ && cp ../../aws-cdk/lib/api/bootstrap/bootstrap-template.yaml ./lib/api/bootstrap/' ) ;
829-
830- //////////////////////////////////////////////////////////////////////
831-
832702const TOOLKIT_LIB_EXCLUDE_PATTERNS = [
833703 'lib/init-templates/*/typescript/*/*.template.ts' ,
834704] ;
@@ -909,7 +779,6 @@ const toolkitLib = configureProject(
909779 '@smithy/types' ,
910780 '@types/fs-extra' ,
911781 '@types/split2' ,
912- tmpToolkitHelpers ,
913782 'aws-cdk-lib' ,
914783 'aws-sdk-client-mock' ,
915784 'aws-sdk-client-mock-jest' ,
@@ -1016,13 +885,6 @@ new pj.JsonFile(toolkitLib, 'api-extractor.json', {
1016885// Eslint rules
1017886toolkitLib . eslint ?. addRules ( {
1018887 '@cdklabs/no-throw-default-error' : 'error' ,
1019- 'import/no-restricted-paths' : [ 'error' , {
1020- zones : [ {
1021- target : './' ,
1022- from : '../tmp-toolkit-helpers' ,
1023- message : 'All `@aws-cdk/tmp-toolkit-helpers` code must be used via lib/api/shared-*.ts' ,
1024- } ] ,
1025- } ] ,
1026888} ) ;
1027889toolkitLib . eslint ?. addOverride ( {
1028890 files : [ './test/**' ] ,
@@ -1137,7 +999,6 @@ const cli = configureProject(
1137999 nodeBundle ,
11381000 yargsGen ,
11391001 cliPluginContract ,
1140- tmpToolkitHelpers ,
11411002 toolkitLib ,
11421003 '@octokit/rest' ,
11431004 '@types/archiver' ,
0 commit comments