I use coffee script to writing my node.js app. When I write an .coffeescript file and run it. It will compile into top-level function javascript and this make my code didn't run.
Ex:
app.coffee
console.log "Hello world";
Will automatically compile into
(function() {
console.log("Hello world");
}).call(this)
And this make node app.coffee didn't run.
Can you help me whenever I run node app.coffee
it will compile my coffeescript with -bare
option?