Supporting pnpm workspaces #172
falconmick
started this conversation in
Feature asks
Replies: 3 comments
-
This issue is idle because it has been open for 14 days with no activity. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I am having similar issue using npm workspaces |
Beta Was this translation helpful? Give feedback.
0 replies
-
Following.... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey team!
I am in the process of automating my monorepo's deployment, up until now I have used Visual Studio codes inbuilt support for deploying to azure function, this process does
npn install && npm run build
basically. However I am using pnpm's workspace feature as I plan on sharing my backend validation with my frontend via a shared package that both can import.The issue here is when I try to use pnpm install and pnpm run build, it results in a node_modules folder being created outside of the folder which contains my Azure Functions and thus my
package: ./app/backend
I can only assume will now miss the node_modules located in my pnpm store (it's centralised on the build machine and use sym links im pretty sure)I would love to provide more info on the exact issue that the azure function ran into when built via pnpm, but the issue is cryptic giving me only:
I have tried
pnpm i --shamefully-flatten --force
however this for whatever reason also didn't work either ;(Has anyone managed to get pnpm in workspaces working for azure functions + this github actions? Heres a guy with what looks like a similar issue https://stackoverflow.com/questions/74944668/how-to-deploy-azure-function-with-pnpm-and-rush
Beta Was this translation helpful? Give feedback.
All reactions