We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b39265f + 341e584 commit d188464Copy full SHA for d188464
1 file changed
Makefile
@@ -8,7 +8,8 @@ BIN := $(THIS_DIR)/node_modules/.bin
8
9
# applications
10
NODE ?= $(shell which node)
11
-NPM ?= $(NODE) $(shell which npm)
+YARN ?= $(shell which yarn)
12
+PKG ?= $(if $(YARN),$(YARN),$(NODE) $(shell which npm))
13
BROWSERIFY ?= $(NODE) $(BIN)/browserify
14
15
all: dist/debug.js
@@ -30,7 +31,7 @@ distclean: clean
30
31
@rm -rf node_modules
32
33
node_modules: package.json
- @NODE_ENV= $(NPM) install
34
+ @NODE_ENV= $(PKG) install
35
@touch node_modules
36
37
.PHONY: all install clean distclean
0 commit comments