Skip to content

Commit

Permalink
Avoid unnecessary packages installation of tern layer
Browse files Browse the repository at this point in the history
Fixes #13530
  • Loading branch information
lawrsp authored and smile13241324 committed May 11, 2020
1 parent c54de3c commit f9ffb8d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.develop
Expand Up @@ -655,6 +655,7 @@ Other:
(thanks to Matt Kramer)
- Replace =spacemacs/close-compilation-window= with
=spacemacs/show-hide-compilation-window= (thanks to Hans Jang)
- Avoid unnecessary packages installation of tern layer
- Other:
- New function =configuration-layer/message= to display message in
=*Messages*= buffer (thanks to Sylvain Benner)
Expand Down
2 changes: 1 addition & 1 deletion layers/+frameworks/react/layers.el
Expand Up @@ -9,4 +9,4 @@
;;
;;; License: GPLv3

(configuration-layer/declare-layer-dependencies '(javascript node prettier tern web-beautify))
(configuration-layer/declare-layer-dependencies '(javascript node prettier web-beautify))
10 changes: 6 additions & 4 deletions layers/+lang/javascript/layers.el
Expand Up @@ -9,8 +9,10 @@
;;
;;; License: GPLv3

(configuration-layer/declare-layer-dependencies '(json node prettier tern web-beautify))
(configuration-layer/declare-layer-dependencies '(json node prettier web-beautify))

(when (and (boundp 'javascript-backend)
(eq javascript-backend 'lsp))
(configuration-layer/declare-layer-dependencies '(lsp)))
(when (boundp 'javascript-backend)
(pcase javascript-backend
('lsp (configuration-layer/declare-layer-dependencies '(lsp)))
('tide (configuration-layer/declare-layer-dependencies '(tide)))
('tern (configuration-layer/declare-layer-dependencies '(tern)))))

0 comments on commit f9ffb8d

Please sign in to comment.