summary refs log tree commit diff stats
path: root/emacs/.emacs.d
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/.emacs.d')
-rw-r--r--emacs/.emacs.d/main.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index d138d976..80ff2d5a 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -494,6 +494,7 @@
                  ((string-equal (projectile-project-type) "node-yarn")
                   (cmd-to-echo "yarn" "install"))
                  (t (cmd-to-echo "npm" "install")))))
+            (defalias 'npm-install #'yarn-install)
 
             (defun yarn-add-dev (package)
               (interactive "spackage: ")
@@ -502,6 +503,7 @@
                  ((string-equal (projectile-project-type) "node-yarn")
                   (cmd-to-echo "yarn" (concat "add --dev " package)))
                  (t (cmd-to-echo "npm" (concat "install --save-dev " package))))))
+            (defalias 'npm-save-dev #'yarn-add-dev)
 
             (defun yarn-add (package)
               (interactive "spackage: ")
@@ -510,6 +512,7 @@
                  ((string-equal (projectile-project-type) "node-yarn")
                   (cmd-to-echo "yarn" (concat "add " package)))
                  (t (cmd-to-echo "npm" (concat "install --save " package))))))
+            (defalias 'npm-save #'yarn-add)
 
             (defun yarn-remove (package)
               (interactive "spackage: ")
@@ -518,6 +521,7 @@
                  ((string-equal (projectile-project-type) "node-yarn")
                   (cmd-to-echo "yarn" (concat "remove " package)))
                  (t (cmd-to-echo "npm" (concat "remove " package))))))
+            (defalias 'npm-remote #'yarn-remove)
 
             (defun yarn-run (cmd)
               (interactive (list
@@ -527,6 +531,7 @@
                  ((string-equal (projectile-project-type) "node-yarn")
                   (cmd-to-echo "yarn" (concat "run " cmd)))
                  (t (cmd-to-echo "npm" (concat "run " cmd))))))
+            (defalias 'npm-run #'yarn-run)
 
             (defun npx-run (cmd)
               (interactive "scommand: ")