Skip to content

Commit 370b1ef

Browse files
committed
Set NODE_PATH env var and quote env vars
1 parent 86fa53a commit 370b1ef

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

tools/make/lib/init/eslint.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ BROWSERIFY_STDLIB_CUSTOM_ESLINT_RULES_PLUGIN_FLAGS ?= \
4545

4646
init-stdlib-custom-eslint-rules-plugin: $(NODE_MODULES)
4747
$(QUIET) $(MKDIR_RECURSIVE) $(STDLIB_CUSTOM_ESLINT_RULES_PLUGIN_OUT)
48-
$(QUIET) NODE_PATH=$(NODE_PATH) \
48+
$(QUIET) NODE_PATH="$(NODE_PATH)" \
4949
$(BROWSERIFY) \
5050
$(STDLIB_CUSTOM_ESLINT_RULES_PLUGIN_ENTRY) \
5151
$(BROWSERIFY_STDLIB_CUSTOM_ESLINT_RULES_PLUGIN_FLAGS)

tools/make/lib/licenses/check.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ CHECK_LICENSES_PRODUCTION ?= \
5050
# This target checks the license for each package dependency against a list of permitted licenses.
5151

5252
check-licenses: $(NODE_MODULES)
53-
$(QUIET) $(CHECK_LICENSES)
53+
$(QUIET) NODE_PATH="$(NODE_PATH)" $(CHECK_LICENSES)
5454

5555
.PHONY: check-licenses
5656

@@ -60,6 +60,6 @@ check-licenses: $(NODE_MODULES)
6060
# This target checks the license for each package dependency against a list of permitted licenses.
6161

6262
check-licenses-production: $(NODE_MODULES)
63-
$(QUIET) $(CHECK_LICENSES_PRODUCTION)
63+
$(QUIET) NODE_PATH="$(NODE_PATH)" $(CHECK_LICENSES_PRODUCTION)
6464

6565
.PHONY: check-licenses-production

tools/make/lib/licenses/ls.mk

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# This target lists the license for each package dependency in the package dependency tree.
2424

2525
list-licenses: $(NODE_MODULES)
26-
$(QUIET) $(LIST_LICENSES) \
26+
$(QUIET) NODE_PATH="$(NODE_PATH)" $(LIST_LICENSES) \
2727
--dir $(ROOT_DIR) \
2828
| $(INFER_LICENSES) \
2929
$(INFER_LICENSES_FLAGS) \
@@ -37,7 +37,7 @@ list-licenses: $(NODE_MODULES)
3737
# This target groups the licenses of package dependencies by license type.
3838

3939
list-licenses-group: $(NODE_MODULES)
40-
$(QUIET) $(LIST_LICENSES) \
40+
$(QUIET) NODE_PATH="$(NODE_PATH)" $(LIST_LICENSES) \
4141
--dir $(ROOT_DIR) \
4242
| $(INFER_LICENSES) \
4343
$(INFER_LICENSES_FLAGS) \
@@ -51,7 +51,7 @@ list-licenses-group: $(NODE_MODULES)
5151
# This target lists the license for each root package dependency.
5252

5353
list-deps-licenses: $(NODE_MODULES)
54-
$(QUIET) $(LIST_LICENSES) \
54+
$(QUIET) NODE_PATH="$(NODE_PATH)" $(LIST_LICENSES) \
5555
--dir $(ROOT_DIR) \
5656
--depth 0 \
5757
| $(INFER_LICENSES) \
@@ -66,7 +66,7 @@ list-deps-licenses: $(NODE_MODULES)
6666
# This target lists packages missing license information.
6767

6868
list-missing-licenses: $(NODE_MODULES)
69-
$(QUIET) $(LIST_LICENSES) \
69+
$(QUIET) NODE_PATH="$(NODE_PATH)" $(LIST_LICENSES) \
7070
--dir $(ROOT_DIR) \
7171
| $(INFER_LICENSES) \
7272
$(INFER_LICENSES_FLAGS) \
@@ -80,7 +80,7 @@ list-missing-licenses: $(NODE_MODULES)
8080
# This target lists packages having ambiguous license information.
8181

8282
list-ambiguous-licenses: $(NODE_MODULES)
83-
$(QUIET) $(LIST_LICENSES) \
83+
$(QUIET) NODE_PATH="$(NODE_PATH)" $(LIST_LICENSES) \
8484
--dir $(ROOT_DIR) \
8585
| $(INFER_LICENSES) \
8686
$(INFER_LICENSES_FLAGS) \
@@ -94,7 +94,7 @@ list-ambiguous-licenses: $(NODE_MODULES)
9494
# This target lists packages excluded license information.
9595

9696
list-excluded-licenses: $(NODE_MODULES)
97-
$(QUIET) $(LIST_LICENSES) \
97+
$(QUIET) NODE_PATH="$(NODE_PATH)" $(LIST_LICENSES) \
9898
--dir $(ROOT_DIR) \
9999
| $(INFER_LICENSES) \
100100
$(INFER_LICENSES_FLAGS) \
@@ -109,7 +109,7 @@ list-excluded-licenses: $(NODE_MODULES)
109109
# This target summaries package dependency license information.
110110

111111
list-licenses-summary: $(NODE_MODULES)
112-
$(QUIET) $(LIST_LICENSES) \
112+
$(QUIET) NODE_PATH="$(NODE_PATH)" $(LIST_LICENSES) \
113113
--dir $(ROOT_DIR) \
114114
| $(INFER_LICENSES) \
115115
$(INFER_LICENSES_FLAGS) \

0 commit comments

Comments
 (0)