You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(region-info): integ use standalone package (#34782)
### Issue # (if applicable)
Closes#34692
### Reason for this change
### Description of changes
- Modify `integ.elastic-beanstalk-hostedzoneid` to use standalone `@aws-cdk/region-info`. We still have `integ.elastic-beanstalk-environment-target` using monolithic one
- Remove duplicate exports https://github.com/aws/aws-cdk/blob/1ae14635cbbc8ba0f2dab8cbeb72c4af0fddce7a/packages/aws-cdk-lib/package.json#L507-L511
### Describe any new or updated permissions being added
### Description of how you validated changes
Reproducing:
1. Change integ to use standalone `@aws-cdk/region-info`
2. Build integ
3. Remove export in `packages/aws-cdk-lib/package.json`
4. Build aws-cdk-lib
5. Run integ > error
```console
$ yarn integ test/aws-route53-targets/test/integ.elastic-beanstalk-hostedzoneid.js
yarn run v1.22.22
$ integ-runner --language javascript test/aws-route53-targets/test/integ.elastic-beanstalk-hostedzoneid.js
Verifying integration test snapshots...
node:internal/modules/cjs/loader:641
throw e;
^
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './core/lib/errors' is not defined by "exports" in /workspaces/aws-cdk/node_modules/aws-cdk-lib/package.json
at exportsNotFound (node:internal/modules/esm/resolve:322:10)
at packageExportsResolve (node:internal/modules/esm/resolve:670:9)
at resolveExports (node:internal/modules/cjs/loader:634:36)
at Module._findPath (node:internal/modules/cjs/loader:724:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1211:27)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/workspaces/aws-cdk/packages/@aws-cdk/region-info/lib/fact.js:8:18)
at Module._compile (node:internal/modules/cjs/loader:1469:14) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
Node.js v20.18.3
```
### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Copy file name to clipboardExpand all lines: packages/@aws-cdk-testing/framework-integ/test/aws-route53-targets/test/integ.elastic-beanstalk-hostedzoneid.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ import * as targets from 'aws-cdk-lib/aws-route53-targets';
0 commit comments