[Feature] Fix EAS configuration relying on global CLI installation

未关闭 适合新手
#3,037 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
node.js, react-native, typescript
领域
tooling

调研方向

找到 Expo 的“Create EAS config file”命令及其相关测试和文档。检查它如何调用 CommandExecutor.execute(),并阅读初始化指南。更新该命令,使其从项目根目录运行 npx eas-cli build:configure --platform all,删除未使用的 nodeModulesRoot 字段,并更新指南以使用 npx eas-cli init;当测试和文档涵盖此更改,且现有 eas.json 文件和执行错误保留所述行为时,即完成。

由索引模型根据 Issue 内容生成。

描述

enhancement

Description

The Expo - Create EAS config file command currently runs:

This requires the eas executable to be available on the system PATH. Without a global EAS CLI installation, configuration can fail.

The command also declares a nodeModulesRoot field that is never initialized. Passing it to CommandExecutor.execute() does not help resolve the EAS CLI, because that execution path does not use it to locate executables.

Proposed changes

Remove the unused, uninitialized nodeModulesRoot field.
Run npx eas-cli build:configure --platform all from the project root.
Update the initialization guidance to use npx eas-cli init.
Update the related tests and documentation.

Expected behavior

EAS configuration should not require a globally installed eas executable. The command should use npx to resolve EAS CLI, preserve existing configuration when eas.json exists, and continue propagating execution errors.

主要语言
TypeScript
星标
2.7k
派生
303
平均合并
20 小时 33 分钟
30 天内合并 PR
33

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/vscode-react-native 的其他 Issue

查看 microsoft/vscode-react-native 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。