From 5eac955cd3cef3d64c0c77604cf614beb08f431b Mon Sep 17 00:00:00 2001 From: Overmind JIANG Date: Wed, 17 Feb 2016 15:30:23 +0800 Subject: [PATCH] Allow `tsfmt` to use the local project's config. By adding `--baseDir=.` to the command line arguments. --- layers/+lang/typescript/packages.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/+lang/typescript/packages.el b/layers/+lang/typescript/packages.el index 3a60d419e..80de61c61 100644 --- a/layers/+lang/typescript/packages.el +++ b/layers/+lang/typescript/packages.el @@ -89,7 +89,7 @@ (progn (with-current-buffer outputbuf (erase-buffer)) (write-region nil nil tmpfile) - (if (zerop (apply 'call-process "tsfmt" nil outputbuf nil (list tmpfile))) + (if (zerop (apply 'call-process "tsfmt" nil outputbuf nil (list "--baseDir=." tmpfile))) (let ((p (point))) (save-excursion (with-current-buffer (current-buffer)