Skip to content

Commit

Permalink
fix: use babel in coffeescript
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Dec 30, 2020
1 parent 4390c94 commit a7d48ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/grammars/coffeescript.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ path = require 'path'
bin = path.join __dirname, '../..', 'node_modules', '.bin'
coffee = path.join bin, 'coffee'
babel = path.join bin, 'babel'
babelConfig = path.join __dirname, 'babel.config.js'

args = ({filepath}) ->
cmd = "'#{coffee}' -p '#{filepath}'|'#{babel}' --filename '#{bin}'| node"
cmd = "'#{coffee}' -p '#{filepath}'|'#{babel}' --filename '#{bin} --config-file #{babelConfig}'| node"
return GrammarUtils.formatArgs(cmd)

exports.CoffeeScript =
Expand Down

0 comments on commit a7d48ff

Please sign in to comment.