isaacs/npm — Issue #1991: Automatic detection and compilation of CoffeeScript code packages to JavaScript
Author: voodootikigod
Created: 2012-01-04 22:14:08+00:00
State: open

In order to reduce the dependency on coffeescript for environments that do not want (for whatever reason, not making judgement) coffeescript installed, npm pack could detect the dependency of coffeescript, compile down the coffeescript files to JavaScript and modify the resulting package.json to point to the JavaScript files (and remove dependency). This will add effort on npm pack (admittedly) but would allow a broader range of portability and less friction for package maintainers that prefer coffeescript and package users that do not prefer coffeescript (again no judgement). Doing it this way ensures that it works for all CoffeeScripts packages not just ones that maintainers pre-compile.

This stems from a twitter discussion - so yea, there is that.