纱线工作区-找不到构建脚本

时间:2018-10-25 00:04:19

标签: javascript detox monorepo yarn-workspaces

我有一个Yarn工作区(monorepo),并且我试图集成wix / detox。 遵循其文档中的步骤。起初,我在detox-cli上遇到了问题,因为它安装在根node_modules而不是子node_modules上,所以我将其添加到根package.json:

"nohoist": ["**/detox**", "**/detox", "**/jest", "**/detox-expo-helpers"]

它解决了detox-cli错误,现在我可以运行detox build

,但找不到配置。错误是:

   detox/local-cli/detox-build.js:28
  throw new Error(`Could not find build script in detox.configurations["${program.configuration}"]`);
  ^

Error: Could not find build script in detox.configurations["undefined"]

0 个答案:

没有答案