Use node module bin for cljmt
This commit is contained in:
parent
9ed56bd351
commit
e3bfb6c383
|
@ -13,8 +13,9 @@ module.exports = class ClojureBeautifier extends Beautifier
|
|||
|
||||
beautify: (text, language, options) ->
|
||||
formatPath = path.resolve(__dirname, "fmt.edn")
|
||||
cljfmt = path.resolve(__dirname, "../../../", "node_modules/.bin/cljfmt")
|
||||
@tempFile("input", text).then((filePath) =>
|
||||
@run("cljfmt", [
|
||||
@run(cljfmt, [
|
||||
filePath,
|
||||
"--edn=" + formatPath
|
||||
]).then(=>
|
||||
|
|
Loading…
Reference in New Issue