Did vendored Dependencies changes for NodeJS Application?

This feels broken IMO. I currently package my node_modules ahead of time with pnpm that become part my cloud function zip file. Why should it matter what package manager we use to install our node_modules? Currently I am unable to get my cloud function to run because build pack runs npm install despite this environment variable being set.

I get error:

ERROR: (gcloud.functions.deploy) OperationError: code=3, message=Build failed with status: FAILURE and message: npm error code EUNSUPPORTEDPROTOCOL
npm error Unsupported URL Type “workspace:”: workspace:*

I use pnpm to install dependencies including workspace dependencies (monorepo) before I upload my zip file because build pack is not equipped to properly handle those types of dependencies.