Skip to content

Commit

Permalink
Skip NPM call if no deps.cljs deps are present (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
sritchie committed Jun 8, 2023
1 parent 597a12b commit 58bd057
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,10 @@

## [unreleased]

- #33 modifies `mentat.clerk-utils.build.shadow/install-npm-deps!` to skip
running an extra npm commnand if there are no uninstalled dependencies in any
`deps.cljs` files.

## [0.5.1]

- #32 modifies `mentat.clerk-utils.build.shadow` to include
Expand Down
3 changes: 2 additions & 1 deletion src/mentat/clerk_utils/build/shadow.clj
Expand Up @@ -97,7 +97,8 @@
(:out
(sh npm-cmd "install"))))

(npm-deps/install-deps {} deps)))
(when (seq deps)
(npm-deps/install-deps {} deps))))

(defn stop-watch!
"Shuts down the `shadow-cljs` server (if running) and stops the build watcher
Expand Down

0 comments on commit 58bd057

Please sign in to comment.