[Feature] Use path.join to construct the EAS configuration file path

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

找到 EAS 配置命令以及断言 eas.json 路径的现有测试。先阅读该实现及其测试文件,然后更新路径断言,并补充项目根目录以分隔符结尾的测试覆盖。当命令使用 path.join(projectRootPath, "eas.json") 且两种路径情况都通过时,即为完成。

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

描述

enhancement

Summary

The EAS build configuration command currently constructs the eas.json path
using string interpolation:

${projectRootPath}/eas.json

Use path.join(projectRootPath, "eas.json") instead to follow platform-native
path conventions and normalize the resulting path.

Motivation

Manual concatenation can produce mixed path separators on Windows or
duplicate separators when the project root already ends with one.

Node.js generally accepts forward slashes on Windows, so this is a
robustness and maintainability improvement rather than a fix for a
confirmed Windows failure.

Proposed changes

  • Use Node.js path.join when checking whether eas.json exists.
  • Update the existing path assertion in the tests.
  • Add a regression test for a project root with a trailing separator.

Expected behavior

The command checks a normalized eas.json path on all supported platforms.
Existing EAS configuration behavior remains unchanged.

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

环境准备

  • 没有 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 摘要。