Skip to content
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

fix(jsii): annotation '@internal' causes missing type declarations downstream #2172

Merged
merged 2 commits into from
Oct 23, 2020

Conversation

RomainMuller
Copy link
Contributor

Stop setting stipInternal: true in tsconfig.json files, as this makes it impossible
to mark intentionally unexported types as @internal without causing downstream
compilation failures due to missing type declarations.

Fixes #1947
Related to #1830


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Stop setting 'stipInternal: true' in tsconfig.json files, as this makes it impossible
to mark intentionally unexported types as @internal without causing downstream
compilation failures due to missing type declarations.
@RomainMuller RomainMuller added effort/small Small work item – less than a day of effort contribution/core This is a PR that came from AWS. module/compiler Issues affecting the JSII compiler labels Oct 23, 2020
@RomainMuller RomainMuller added this to the 🎃 October Release milestone Oct 23, 2020
@RomainMuller RomainMuller requested a review from a team October 23, 2020 08:30
@RomainMuller RomainMuller self-assigned this Oct 23, 2020
@nija-at nija-at added the pr/do-not-merge This PR should not be merged at this time. label Oct 23, 2020
Copy link
Contributor

@nija-at nija-at left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

feat? Should be a 'fix', no?

@RomainMuller RomainMuller changed the title feat(jsii): turn off 'stripInternal' in generated tsconfig.json fix(jsii): turn off 'stripInternal' in generated tsconfig.json Oct 23, 2020
@RomainMuller
Copy link
Contributor Author

feat? Should be a 'fix', no?

I hesitated... changed it up :)

@nija-at nija-at removed the pr/do-not-merge This PR should not be merged at this time. label Oct 23, 2020
@mergify
Copy link
Contributor

mergify bot commented Oct 23, 2020

Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it!

@mergify mergify bot added the pr/ready-to-merge This PR is ready to be merged. label Oct 23, 2020
@mergify
Copy link
Contributor

mergify bot commented Oct 23, 2020

Merging (with squash)...

@nija-at nija-at changed the title fix(jsii): turn off 'stripInternal' in generated tsconfig.json fix(jsii): annotation '@internal' causes missing type declarations downstream Oct 23, 2020
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
  • Commit ID: e322c66
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit e80a4f7 into master Oct 23, 2020
@mergify mergify bot deleted the rmuller/no-erase-internals branch October 23, 2020 14:05
@mergify
Copy link
Contributor

mergify bot commented Oct 23, 2020

Merging (with squash)...

@mergify mergify bot removed the pr/ready-to-merge This PR is ready to be merged. label Oct 23, 2020
mergify bot pushed a commit to aws/aws-cdk that referenced this pull request Oct 23, 2020
…" (#11070)

This reverts commit 0537598.

This change requires aws/jsii#2172 to be merged and a jsii upgrade as the usage
of `@internal` for `HttpPrivateIntegration` and `VpcLinkConfigurationOptions` is
causing downstream compilation failures currently.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
eladb pushed a commit to cdklabs/decdk that referenced this pull request Jan 18, 2022
…1)" (#11070)

This reverts commit fc74e037c5be4e364d249ab5cad6998490880afa.

This change requires aws/jsii#2172 to be merged and a jsii upgrade as the usage
of `@internal` for `HttpPrivateIntegration` and `VpcLinkConfigurationOptions` is
causing downstream compilation failures currently.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. effort/small Small work item – less than a day of effort module/compiler Issues affecting the JSII compiler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@internal API elements are erased for all languages except TypeScript
3 participants