firebase-framework-tools icon indicating copy to clipboard operation
firebase-framework-tools copied to clipboard

Add yaml dependency to apphosting build package

Open kingmarh-hash opened this issue 5 months ago • 1 comments

Summary

  • declare yaml as a runtime dependency of @apphosting/build
  • update the root lockfile workspace entry for packages/@apphosting/build

Why

packages/@apphosting/build/src/index.ts imports parse from yaml, but the package did not declare yaml in its dependencies. npm flat installs can hide this through sibling dependencies, but strict package layouts such as pnpm isolated/no-hoist can fail when Firebase CLI loads App Hosting local build code.

Fixes #556.

Verification

  • Reproduced the published failure with [email protected] in a temporary pnpm project using node-linker=isolated and hoist=false: loading firebase-tools/lib/apphosting/localbuilds.js failed with MODULE_NOT_FOUND Cannot find module 'yaml'.
  • npm ci --ignore-scripts --no-audit --no-fund
  • npm --workspace @apphosting/common run build
  • npm --workspace @apphosting/build run build
  • git diff --check

kingmarh-hash avatar Jun 08 '26 07:06 kingmarh-hash

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Jun 08 '26 07:06 google-cla[bot]