Use node module bin for cljmt

This commit is contained in:
Dan Vingo 2016-09-04 00:15:37 -04:00
parent 9ed56bd351
commit e3bfb6c383
1 changed files with 2 additions and 1 deletions

View File

@ -13,8 +13,9 @@ module.exports = class ClojureBeautifier extends Beautifier
beautify: (text, language, options) -> beautify: (text, language, options) ->
formatPath = path.resolve(__dirname, "fmt.edn") formatPath = path.resolve(__dirname, "fmt.edn")
cljfmt = path.resolve(__dirname, "../../../", "node_modules/.bin/cljfmt")
@tempFile("input", text).then((filePath) => @tempFile("input", text).then((filePath) =>
@run("cljfmt", [ @run(cljfmt, [
filePath, filePath,
"--edn=" + formatPath "--edn=" + formatPath
]).then(=> ]).then(=>