We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pnpm 10.0.0 Blocks Lifecycle Scripts by Default, and pnpm.onlyBuiltDependencies has to be set in package.json for them to be built. Isolate Package does not handle this.
pnpm.onlyBuiltDependencies
package.json
Possible solutions (open to others as well):
onlyBuiltDependencies
ignoredBuiltDependencies
The text was updated successfully, but these errors were encountered:
Thanks for brining it under my attention.
Since these are part of the pnpm property, I think we can just include that in its totality (if it exists).
Sorry, something went wrong.
For anyone having similar issues with this, I have worked around it by monkey-patching the isolated package.json.
In my cases I needed Puppeteer to install its Chrome binaries. I have added a script in my project's main package.json:
{ ... "scripts": { "patchIsolatedPackageJson": "sed -i -e 's/\\\"pnpm\\\": {/\"pnpm\": {\"onlyBuiltDependencies\": [\"puppeteer\"],/' ./packages/<project>/isolate/package.json", } }
And added this to the "predeploy" scripts of the affected function in firebase.json:
firebase.json
{ "functions": [ { "source": "./packages/<project>/isolate", "codebase": "<project>", "predeploy": [ "pnpm run predeployFirebase" "pnpm run patchIsolatedPackageJson" ] }, ] }
I'll try to pick this up soon, because it should be an easy fix. Of course PRs are welcome too ;)
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
pnpm 10.0.0 Blocks Lifecycle Scripts by Default, and
pnpm.onlyBuiltDependencies
has to be set inpackage.json
for them to be built. Isolate Package does not handle this.Possible solutions (open to others as well):
onlyBuiltDependencies
andignoredBuiltDependencies
from the monorepo root, and apply it to the isolatedpackage.json
onlyBuiltDependencies
andignoredBuiltDependencies
from the isolated module'spackage.json
.The text was updated successfully, but these errors were encountered: