remixz/publish-release

Cope better with `EDITOR` not being defined

Open

#6 创建于 2015年8月17日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)JavaScript (17 fork)github user discovery
enhancementhelp wanted

仓库指标

Star
 (72 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

There are a couple of ways this could be achieved:

  1. Fail-fast with a nice error message if EDITOR has not been defined.
  2. Ask the developer to enter the path to their editor in lieu of EDITOR not being defined.

Ideally, my preference would be for option 2, as I plan to use publish-release within the postpublish hook of all our modules, and this would allow developers who run npm publish to still have things work, rather than requiring them to define EDITOR, then re-run npm run postpublish.

贡献者指南