I’m going to suggest that you write your package in coffeescript, but only publish it in javascript. I do it like this:
- coffeescript code goes in
src - code is compiled to
lib srcis committed to my git repo,libis in my.gitignorelibis published to npm,srcis in my.npmignore- the
coffee-scriptpackage is in mydevDependencies
You can take a look at a simple package of mine, refix, for inspiration:
- https://github.com/linus/refix
npm install refix