Suppose I have a file main.coffee and I use this command to compile it:
coffeescript --map --output "/path/to/newname.js" --compile "/path/to/main.coffee"
This command works, and generates the following files:
This is not correct. The source map should be named newname.js.map. This is the standard convention followed by every language that uses source maps. It's always [output filename].[output extension].map
Even though this bug exists, the maps still work because the //# sourcemappingurl comment in newname.js is set to main.js.map. However, it's very confusing to see the wrong source map name in the Finder and the map file won't show up next to the output file in sorted lists, etc.