Skip to content

Commit 7004f0f

Browse files
committed
Add support for NODE_PATH environment variables
1 parent 7605828 commit 7004f0f

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

tools/make/lib/benchmark/javascript.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ NODE ?= node
77
# Define the Node environment:
88
NODE_ENV ?= benchmark
99

10+
# Define the Node path:
11+
NODE_PATH ?= $(NODE_PATH_BENCHMARK)
12+
1013

1114
# TARGETS #
1215

tools/make/lib/examples/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
# Define the command for `node`:
55
NODE ?= node
66

7+
# Define the Node environment:
8+
NODE_ENV ?= examples
9+
10+
# Define the Node path:
11+
NODE_PATH ?= $(NODE_PATH_EXAMPLES)
12+
713

814
# TARGETS #
915

tools/make/lib/repl/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# Define the Node environment:
55
NODE_ENV ?= repl
66

7+
# Define the Node path:
8+
NODE_PATH ?= $(NODE_PATH_REPL)
9+
710
# Define the path of the REPL executable:
811
REPL ?= $(LOCAL_BIN_DIR)/repl
912

tools/make/lib/test-browsers/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# Define the Node environment:
55
NODE_ENV ?= test
66

7+
# Define the Node path:
8+
NODE_PATH ?= $(NODE_PATH_TEST)
9+
710
# Define the browser test runner:
811
BROWSER_TEST_RUNNER ?= testling
912

0 commit comments

Comments
 (0)