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

feat: enable declarations by default when unspecified in tsconfig dict #181

Closed
wants to merge 1 commit into from

Conversation

jbedard
Copy link
Member

@jbedard jbedard commented Oct 17, 2022

Fix #30

@jbedard jbedard force-pushed the 30-default-declarations branch from 095114f to eb3eff8 Compare October 17, 2022 20:03
@jbedard jbedard force-pushed the 30-default-declarations branch from eb3eff8 to 0635943 Compare October 17, 2022 20:06
@@ -291,6 +291,9 @@ def ts_project(
tsconfig = "tsconfig.json"

if type(tsconfig) == type(dict()):
# Output declarations by default if unspecified and not extending a config which may specify
declaration = False if declaration == False or extends else True
Copy link
Member

Choose a reason for hiding this comment

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

had to read four times to understand the outcome 🗡️

Copy link
Member Author

Choose a reason for hiding this comment

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

Have a recommendation or preference to use instead?

Copy link
Member

@thesayyn thesayyn left a comment

Choose a reason for hiding this comment

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

lgtm

@jbedard
Copy link
Member Author

jbedard commented Oct 17, 2022

We decided to create a better error message instead of sometimes overriding the tsconfig, see the change to #30

I'll open a new PR...

@jbedard jbedard closed this Oct 17, 2022
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.

Give better error when a ts_project dep didn't produce declarations
2 participants