Guidance for using npm in a node-only CI/CD environment #890
-
I am developing a library using your tool and have a question regarding package manager support. Our CI/CD pipeline is restricted to using only node and npm, and we cannot use yarn. I understand from the documentation and existing issues that yarn is the recommended package manager. However, due to our infrastructure constraints, we need to find a reliable way to make this work with npm. Could you please provide guidance or a recommended workflow for using react-native-builder-bob in a CI/CD environment that exclusively uses npm? Is there an official way to configure the project to build successfully with npm? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
We don't officially test with npm so I can't give proper instructions, but it essentially boils down to 2 things:
Though npm doesn't seem to support disabling hositing in monorepo. So the second part may not be possible. An alternative solution to using npm monorepo is to not use monorepo. You'll need to remove |
Beta Was this translation helpful? Give feedback.
@DanielFrTB I added a
workspaces
option so you can passworkspaces: ['example']
to the config directly https://github.com/satya164/react-native-monorepo-config/tree/main?tab=readme-ov-file#custom-workspaces