Hook +javascript-npm-mode into typescript-mode

This way typescript projects will be aware of node_modules.
This commit is contained in:
Henrik Lissner 2018-12-23 16:01:37 -05:00
parent 451c16b8ee
commit 29f119ad4d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -228,7 +228,7 @@
;; Projects
(def-project-mode! +javascript-npm-mode
:modes (html-mode css-mode web-mode js2-mode rjsx-mode json-mode markdown-mode)
:modes (html-mode css-mode web-mode typescript-mode js2-mode rjsx-mode json-mode markdown-mode)
:when (locate-dominating-file default-directory "package.json")
:add-hooks (+javascript|add-node-modules-path npm-mode))