javascript-studio / studio-changes

📦 Generate a changelog as part of the npm version command
https://medium.com/javascript-studio/nice-and-easy-module-releases-a32c906b564e
MIT License
49 stars 7 forks source link

Does not wait for editor to close #30

Closed mroderick closed 4 years ago

mroderick commented 4 years ago

In working on the Sinon projects, I have more than once experienced an undesirable situation.

Allow me to elaborate:

Steps to reproduce

  1. Use Sublime Text as your git editor
  2. Make changes to @sinonjs/samsam (or another project configured with the recommended configuration)
  3. npm version patch
  4. Edit the changelog in the CHANGES.md that is opened in Sublime Text
  5. Close the file
  6. Observe that the package has already been published, and that your changes to CHANGES.md are unstaged
mroderick commented 4 years ago

I believe I found the solution:

# change this
export EDITOR='subl';

# to this
export EDITOR='subl -w -n';

This can be closed, as it was a misconfiguration of my environment

mantoni commented 4 years ago

Shall we add a note in the README.md on how to configure sublime?