-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(core): make examples compile #11273
Conversation
Add support in `cdk-build` to actually run `jsii-rosetta --compile --fail` in packages that declare supporting "strict" mode for `jsii-rosetta`. This enables a "quick" feedback loop for detercting "now-invalid" code examples. Turned on this feature on `@aws-cdk/core` and made the necessary adjustements to fixtures and examples so that they now compile.
…trict mode on touched packages
…n in Python docs)
693a08f
to
9b9e1d9
Compare
(Sorry I had to force-push to remove an un-tangled commit that I separated out to a different PR) |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Add support in
cdk-build
to actually runjsii-rosetta --compile --fail
in packages that declare supporting "strict" mode for
jsii-rosetta
.This enables a "quick" feedback loop for detecting "now-invalid" code
examples.
Turned on this feature on
@aws-cdk/core
and made the necessaryadjustments to fixtures and examples so that they now compile. In
particular:
import
statements implicit from the examples, as they areall moved to the fixture. Imports from the library itself are always
unqualified, and external ones are always qualified.
declare
statements in the fixtures to avoid having to comeup with "real" values that compile. This is way less brittle than actually
coming up with an initializer, especially for external types.
Also turned on this feature on
@aws-cdk/aws-iam
and made theajustement to fixtures and examples so that they now compile. In
particular:
@aws-cdk/core
are nominal and un-qualified.Fixes #11624.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license