|
|
|
|
|
by mhenr18
2841 days ago
|
|
As a data point, my company is using yarn workspaces where one of the projects is an Electron app, and another has a Node server with native dependencies. Our nohoist section currently looks like this in order to get things to behave: "nohoist": [
"**/electron/**",
"**/electron",
"**/electron*/**",
"**/electron*",
"**/canvas-prebuilt/**",
"**/canvas-prebuilt"
]
These are likely going to require auto-ejection due to being native and having postinstall scripts.Would it make sense to not bother with hoisting of ejected modules when using YPnP, given that YPnP solves the same problems as hoisting in a more global way? We'd be able to get rid of the nohoist section in that case. |
|