I have a pnpm monorepo and I use the workspace: protocol to add my shared folder as a local package.
The workspace: protocol is not recognized by Firebase when deploying functions and I have the following error:
Build failed: npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "workspace:": workspace:../shared
npm ERR! A complete log of this run can be found in:
npm ERR! /www-data-home/.npm/_logs/2023-03-19T21_44_16_828Z-debug-0.log; Error ID: b0ba1f57
How do I deploy my Firebase functions using pnpm workspace?
functions/package.jsonfunctions/pre-deploy.jsfunctions/post-deploy.jsfirebase.jsonThe steps above assume that the
pnpm-workspace.yamlfile contains the following information: