Repository navigation
Commit b257054
authored
fix(deploy): declare firebase-admin in the generated Cloud Functions manifest (#3745)
* fix(deploy): declare firebase-admin in the generated Cloud Functions manifest
The root package.json had no firebase-admin entry, so the build resolved
its version to undefined and JSON.stringify dropped it from the generated
manifest. firebase-functions 6.x requires firebase-admin eagerly at
module load, so the deployed function crashed at cold start wherever
peers are not auto-installed (--legacy-peer-deps, yarn 1, pnpm).
firebase-functions moves to ^6.1.1, the first release whose peer range
accepts firebase-admin 13.
* build: fail the build when a schematic dependency version is missing
replaceSchematicVersions resolved versions from the root package.json
with no check, and a missing entry was silently dropped from the
shipped versions.json by JSON.stringify. That is how the generated
Cloud Functions manifest lost firebase-admin (#3744). The build now
throws, naming the package, and both loops share the guard.1 parent 0b8a49d commit b257054
3 files changed
Lines changed: 40 additions & 119 deletions
0 commit comments