Emacs: run npm version as a normal shell command
Alan Pearce alan@alanpearce.eu
Tue, 06 Mar 2018 13:34:36 +0100
1 files changed, 1 insertions(+), 1 deletions(-)
jump to
M emacs/.emacs.d/main.el → emacs/.emacs.d/main.el
@@ -539,7 +539,7 @@ (defun npm-version (type) (interactive (list (projectile-completing-read "version: " '("major" "minor" "patch" "premajor" "preminor" "prepatch" "prerelease" "from-git")))) (projectile-with-default-dir (projectile-project-root) - (cmd-to-echo "npm" (concat "version " type)))) + (message (shell-command-to-string (concat "npm" " version " type))))) (defun ap/open-project (&optional arg) (interactive "P")