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

Bundle type definitions for monorepo packages #39

Merged
merged 2 commits into from
Oct 25, 2021
Merged

Conversation

adamjmcgrath
Copy link
Contributor

Description

We should bundle type definitions as well as typescript files for private monorepo packages (access-token-jwt and oauth2-bearer)

References

fixes #38

Testing

Tested by installing the fix locally

Checklist

  • I have added documentation for new/changed functionality in this PR or in auth0.com/docs
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not master

@adamjmcgrath adamjmcgrath requested a review from a team as a code owner October 25, 2021 10:21
@@ -3,7 +3,6 @@
"compilerOptions": {
"allowJs": true,
"removeComments": true,
"declaration": true,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We're using rollup-plugin-dts to provide the type declaration rather than typescript

@@ -32,6 +32,7 @@ module.exports = {
'oauth2-bearer': ['../oauth2-bearer/src'],
'access-token-jwt': ['../access-token-jwt/src'],
},
useUnknownInCatchVariables: false,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

rollup-plugin-dts brought in a new version of TS with a breaking change around errors being unknown by default. Which was causing some tests to fail.

This disables the breaking change for the tests (in ts-jest)

@adamjmcgrath adamjmcgrath merged commit e7e9d42 into main Oct 25, 2021
@adamjmcgrath adamjmcgrath deleted the rollup-types branch October 25, 2021 14:49
@adamjmcgrath adamjmcgrath mentioned this pull request Oct 25, 2021
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.

access-token-jwt missing in dependencies
2 participants