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): correctly inherit initializer stability #569

Merged
merged 5 commits into from
Jul 1, 2019

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Jul 1, 2019

Fix the inheriting of stability tags for the initializer. It used to
inherit from the package, it now correctly inherits from the class.

Update jsii-reflect with a "load all modules" method (to save time
in a complex dependency tree) and jsii-tree with options to show
stabilities.

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

Fix the inheriting of stability tags for the initializer. It used to
inherit from the package, it now correctly inherits from the class.

Update jsii-reflect with a "load all modules" method (to save time
in a complex dependency tree) and jsii-tree with options to show
stabilities.
@rix0rrr rix0rrr requested a review from a team as a code owner July 1, 2019 10:52
@ghost ghost requested a review from RomainMuller July 1, 2019 10:52
packages/jsii-reflect/bin/jsii-tree.ts Outdated Show resolved Hide resolved
.positional('JSII-FILE', { type: 'string', desc: 'path to a .jsii file to load, all dependency .jsii files must be explicitly supplied' })
.positional('MODULE-DIR', { type: 'string', desc: 'path to an jsii npm module directory, all jsii dependencies will be loaded transitively' }))
.option('closure', { type: 'string', alias: 'c', desc: 'Load dependencies of package without assuming its a JSII package itself' })
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure I understand this feature? What is the value passed in to this switch?

Feels like you could just auto-discover this when MODULE-DIR is not a jsii module

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well load() (and loadModule()) expects to be able to return an Assembly, and we can't return an Assembly for a non-JSII package.

packages/jsii-reflect/lib/type-system.ts Outdated Show resolved Hide resolved
@rix0rrr rix0rrr merged commit a4de2d8 into master Jul 1, 2019
@rix0rrr rix0rrr deleted the huijbers/stability branch July 1, 2019 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants