From 9181eac68ef71f58ca3cc3a6ddaf2943ddd07427 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Mon, 14 Apr 2025 11:43:32 +0000 Subject: [PATCH] fix(bazel): use `RUNFILES` in http_server This is necessary because `RUNFILES_DIR` is only set in tests by Bazel, while `RUNFILES` itself is set by the `rules_js` launcher and is therefore more available. --- bazel/http-server/server.mts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bazel/http-server/server.mts b/bazel/http-server/server.mts index 7d228ca1d..c65c4e7fa 100644 --- a/bazel/http-server/server.mts +++ b/bazel/http-server/server.mts @@ -14,8 +14,8 @@ import send from 'send'; import assert from 'node:assert'; // The current working directory is the runfiles root. -const runfilesRoot = process.env['RUNFILES_DIR']!; -assert(runfilesRoot, 'Expected `RUNFILES_DIR` to be set.'); +const runfilesRoot = process.env['RUNFILES']!; +assert(runfilesRoot, 'Expected `RUNFILES` to be set.'); /** * Http Server implementation that uses browser-sync internally. This server