-
Notifications
You must be signed in to change notification settings - Fork 893
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
Generate dts rollups for auth webextension and cordova #8251
Conversation
🦋 Changeset detectedLatest commit: a4efa7a The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1Affected ProductsNo changes between base commit (3883133) and merge commit (957db22).Test Logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also have to get lines 42 and 46 in this file. I think that Node ESM uses them.
dda3035
to
491e4ed
Compare
491e4ed
to
138ea2f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good pending updating to public types.
packages/auth/package.json
Outdated
@@ -39,11 +39,11 @@ | |||
"default": "./dist/esm2017/index.js" | |||
}, | |||
"./cordova": { | |||
"types": "./dist/cordova/index.cordova.d.ts", | |||
"types": "./dist/cordova/auth-cordova.d.ts", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
auth-cordova-public
packages/auth/package.json
Outdated
"default": "./dist/cordova/index.js" | ||
}, | ||
"./web-extension": { | ||
"types:": "./dist/web-extension-esm2017/index.web-extension.d.ts", | ||
"types:": "./dist/web-extension-esm2017/auth-web-extension.d.ts", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
auth-web-extension-public
Fixes #8222
auth web-extension and cordova packages had typings that were not rolled up by dts, which caused some compilation errors to arise in the typings files.
The API extractor tool does not work with package names with more than one
/
, so we have to change the package names for these from@firebase/auth-web-extension
->@firebase/auth-web-extension
, and@firebase/auth/cordova
->@firebase/auth-cordova
. This does not affect the way we import these packages, since that's done through the firebase package, and the typings are resolved based on the directory name (e.g../auth/cordova
) rather than the package name.Note: There are a lot of warnings coming from the API extractor because it is not able to resolve
@link
's, since these packages don't actually export what their entrypoints export. I currently don't have any ideas on how to fix this.Example:
firebase-js-sdk/packages/auth/dist/web-extension-esm2017/index.web-extension.d.ts:3311:5 - (ae-unresolved-link) The @link reference could not be resolved: The package "@firebase/auth-web-extension" does not have an export "ProviderId"