EndangeredMassa / npub

publisher for node.js projects
BSD 3-Clause "New" or "Revised" License
3 stars 2 forks source link

Use unique tmp file for changelog #22

Closed jkrems closed 9 years ago

jkrems commented 9 years ago

Just wanted to publish two libraries in two different terminal windows and discovered that you really should not do that with npub...

ghost commented 9 years ago

What happens?

jkrems commented 9 years ago

It will write the changelog to the tmp file, open it in your editor, and then the other npub instance will overwrite the file. And you end up with a bunch of warnings in your editor (hopefully) about how the file changed under your feet. At which point your best bet is to :cq your way out of both publish runs.