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) ->
|
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(=>
|
||||||
|
|
Loading…
Reference in New Issue