fix: TypeScript package regressions, remove files property from package.json #8832
+662
−194
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
filesarray was added topackage.jsonwhich was too exclusiveA
filesarray that is correct is a good thing as it ensures the installed packages and resulting app bundle are optimal - including nothing unnecessary, so this will likely be redone in the futureHowever a
filesarray that is missing critical files is an error and this rendered the resulting published packages useless for library consumers as they were missing the native files and the Expo plugins.Additionally, a cross-package dependency from ai to app-check was not expressed correctly and after typescript conversion this meant app-check typescript wasn't transpiled before ai package needed it sometimes.
Finally, the "other" e2e run was failing to parse app-check but only sometimes. Root cause was traced to indeterminant transpile output from
tscbecause the pre-typescript-migration javascript files were still present, and the final transpiled js files got a mix of original, transpile, or partial-of-each in their final content. Removed the original JS filesRelated issues
Release Summary
Fix release, conventional commits
Checklist
AndroidiOSOther(macOS, web)e2etests added or updated inpackages/\*\*/e2ejesttests added or updated inpackages/\*\*/__tests__Test Plan
revert of files change should be sufficient, however
Think
react-native-firebaseis great? Please consider supporting the project with any of the below:React Native FirebaseandInvertaseon Twitter