简体   繁体   English

在没有 Yarn 的 Monorepo 中使用 Expo React Native

[英]Using Expo React Native in Monorepo without Yarn

I have been trying to setup a monorepo using turborepo.我一直在尝试使用 turborepo 设置 monorepo。 I want to have a Nextjs application along with a React Native application (using Expo).我想要一个 Nextjs 应用程序和一个 React Native 应用程序(使用 Expo)。

I have come as far as getting everything to work using yarn and it's no-hoist options as well as expo-yarn-workspaces.我已经使用纱线让一切正常工作,它是无提升机选项以及博览会纱线工作区。 You can see my repo here: https://github.com/juliusmarminge/turbo-expo-next-starter .你可以在这里看到我的回购: https ://github.com/juliusmarminge/turbo-expo-next-starter。 This is my first monorepo so not sure if it follows conventions by any means.这是我的第一个 monorepo,所以不确定它是否以任何方式遵循约定。

The issue I'm getting into is I don't want to be forced to use Yarn, especially since pnpm is getting more popular and I use it for most my other projects.我遇到的问题是我不想被迫使用 Yarn,特别是因为 pnpm 越来越流行,而且我在大多数其他项目中都使用它。 Has anyone any experience in using Expo in a monorepo without using Yarn?有没有人在不使用 Yarn 的情况下在 monorepo 中使用 Expo 的经验? Feels like all examples online is using it...感觉网上所有的例子都在用它...

Thanks in advance, Julius在此先感谢,朱利叶斯

您可以将它与 pnpm 和 get-workspaces(来自 yarn)一起使用来更新 metro.config.js 并解析 node_modules。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM