Skip to content

Conversation

@russellwheatley
Copy link
Member

@russellwheatley russellwheatley commented Jan 13, 2026

Description

  1. During the typescript conversion currently in-progress, a files array was added to package.json which was too exclusive

A files array 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 future

However a files array 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.

  1. 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.

  2. Finally, the "other" e2e run was failing to parse app-check but only sometimes. Root cause was traced to indeterminant transpile output from tsc because 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 files

Related issues

Release Summary

Fix release, conventional commits

Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
    • Yes
  • My change supports the following platforms;
    • Android
    • iOS
    • Other (macOS, web)
  • My change includes tests;
    • e2e tests added or updated in packages/\*\*/e2e
    • jest tests added or updated in packages/\*\*/__tests__
  • I have updated TypeScript types that are affected by my change.
  • This is a breaking change;
    • Yes
    • No

Test Plan

revert of files change should be sufficient, however

  • an examination of npm pack also may be used to verify correctness

Think react-native-firebase is great? Please consider supporting the project with any of the below:

@vercel
Copy link

vercel bot commented Jan 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
react-native-firebase Ready Ready Preview, Comment Jan 13, 2026 6:48pm

in the packages recently converted to typescript a files array
was added to package.json, but it was too restrictive and did not
include all the files library consumers needed

a correct files array could be a benefit and may be explored in the
future but for now including all the files previously included
(that is, everything not in .npmignore) should satisfy needs of library
consumers with the slight risk of including a bit too much and increasing
bundle size
…e ai

otherwise the ai module attempts to transpile from typescript to
javascript prior to the dependency typescript definitions exist,
which fails the transpile
@mikehardy mikehardy force-pushed the fix-package-json-regression branch from 545007b to fe0cfe2 Compare January 13, 2026 14:52
@mikehardy mikehardy marked this pull request as ready for review January 13, 2026 15:02
investigating a transpiler failure in app-check and best to use
current stable version vs old versions
…ation

if the JS is present alongside the TS, the typescript compiler engages
in a race with itself inside the same file, and the final contents are
indeterminant - may be the original JS, may be the pure TS transpile,
or could be a mix of the two that won't compile
@mikehardy mikehardy merged commit b729417 into main Jan 13, 2026
21 of 22 checks passed
@mikehardy mikehardy deleted the fix-package-json-regression branch January 13, 2026 19:20
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.

[🐛] v23.8.0 .1 and .2 have a publishing regression - Expo plugin config is not valid - remain on 23.7.0 or wait for 23.8.3+

3 participants