atom / apm

Atom Package Manager
https://atom.io/packages
MIT License
1.26k stars 296 forks source link

stash? #560

Open danielbayley opened 8 years ago

danielbayley commented 8 years ago

apm publish throws an error and refuses to publish unless you have a clean directory. Wouldn't it be better to simply stash everything, publish, then restore (and remove) that stash?

danielbayley commented 7 years ago

I'm not sure if this should be build-in behaviour or exist as a prepublish lifecycle script in package.json, but at the moment that isn't an option either… related to https://github.com/atom/apm/issues/372.