Skip to content

Commit c1a13b3

Browse files
committed
Refactor
1 parent b8e50d8 commit c1a13b3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/tools_tests/run_nix_shell_test_runner.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ node_binary_location=nodejs/bin/node
3131
node_binary="$(rlocation "${node_binary_location}")" || \
3232
(echo >&2 "Failed to locate ${node_binary_location}" && exit 1)
3333

34-
node_bundle_js_location=run_nix_shell/generated/bundle.mjs
35-
node_bundle_js="$(rlocation "${node_bundle_js_location}")" || \
36-
(echo >&2 "Failed to locate ${node_bundle_js_location}" && exit 1)
34+
node_bundle_mjs_location=run_nix_shell/generated/bundle.mjs
35+
node_bundle_mjs="$(rlocation "${node_bundle_mjs_location}")" || \
36+
(echo >&2 "Failed to locate ${node_bundle_mjs_location}" && exit 1)
3737

3838
# MARK - Setup
3939

40-
export RNS_NODE="$node_binary"
41-
export RNS_INDEX_JS="$node_bundle_js"
40+
export NODE="$node_binary"
41+
export RNS_BUNDLE_MJS="$node_bundle_mjs"
4242

4343
cat >shell.nix <<-EOF
4444
{

tools/run_nix_shell.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,4 @@ for ((i=0; i < ${#INPUTS[@]}; i+=2)); do
119119
fi
120120
done
121121

122-
exec env "${variables[@]}" "${RNS_NODE:-node}" "${RNS_INDEX_JS:-dist/index.js}"
122+
exec env "${variables[@]}" "${NODE:-node}" "${RNS_BUNDLE_MJS:-dist/bundle.mjs}"

0 commit comments

Comments
 (0)