SocketDev / SocketDev/socket-cli

Add homebrew distribution

未关闭
#1,497 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
TypeScript
星标
317
派生
65
平均合并
1 小时 26 分钟
30 天内合并 PR
30

描述

On MacOS Homebrew https://brew.sh is the defacto package manager to install Apps or CLIs.

Using npm for distributing the cli has some downsides

One I ran into today was that:

I use fnm to manage Node versions, which keeps multiple versions of Node and NPM and depending on the project needs it switches to the correct version using symlinks.

Since the cli is installed globally and the npm stores that in a folder scoped to a specific Node version, when I try to use the cli in a different repo which uses a different version of Node (and hence npm) the socket cli is not found.

With Homebrew distribution, the whole system gets the same socket cli version, unlike Node, Homebrew is installed system-wide and doesn't change per-project.

贡献指南

打开贡献指南

从这里开始

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

调研方向

未指定文件、测试或入口点。首先检查现有的 npm 打包和发布配置,然后确定应在哪里集成 Homebrew 分发。完成的标准是 CLI 可以通过 Homebrew 在系统范围内安装,并且在项目使用不同 Node 版本时仍然可用;验证安装和调用路径。

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

评估

技术栈
typescript
领域
cli, release
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

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