diff --git a/CoffeeScript.py b/CoffeeScript.py index 7cb5429..4a01603 100755 --- a/CoffeeScript.py +++ b/CoffeeScript.py @@ -68,6 +68,7 @@ def run(self, *args, **kwargs): args = ['-c', self.view.file_name()] if no_wrapper: args = ['-b'] + args + args = ['-o', settings.get('outDir', '.')] + args result = run("coffee", args=args) if result['okay'] is True: diff --git a/CoffeeScript.sublime-settings b/CoffeeScript.sublime-settings index 97cd80d..c0ae671 100644 --- a/CoffeeScript.sublime-settings +++ b/CoffeeScript.sublime-settings @@ -11,6 +11,7 @@ */ , "libDir": "" , "srcDir": "" +, "outDir": "." /* Compile without the top-level function wrapper (coffee -b).