Sage/streamlinejs — Issue #70: Unable to run CoffeeScript without `.coffee` extension.
Author: bigeasy
Created: 2012-02-12 19:05:35+00:00
State: open

With the following CoffeeScript program in a file named `example`.

```
require "fs"
```

I get the following stack trace.

```
[alan@celje:~$] coffee-streamline example

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: error streamlining /home/alan/example: :1:missing ; before statement on line 1
at Object.transform (/opt/lib/node_modules/streamline/lib/callbacks/transform.js:1409:10)
at Object.transformModule (/opt/lib/node_modules/streamline/lib/compiler/compile.js:217:19)
at Module._compile (/opt/lib/node_modules/streamline/lib/compiler/register.js:47:21)
at Object..js (module.js:417:10)
at Module.load (module.js:343:31)
at Function._load (module.js:302:12)
at require (module.js:355:19)
at Object. (/opt/lib/node_modules/streamline/bin/coffee-streamline:12:2)
at Module. (module.js:411:26)
at Object..js (module.js:417:10)
```

If I rename the file to `example.coffee` it works fine. Is this the expected behavior?

Ideally, I'd like to create Streamlined CoffeeScript scripts with a shebang line.