Skip to content

Commit

Permalink
refactor(runfiles): do not export private BAZEL_OUT_REGEX
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard committed Sep 17, 2024
1 parent 21b56da commit 3eed8d4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/runfiles/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import {BAZEL_OUT_REGEX} from './paths';
import {Runfiles} from './runfiles';
import { Runfiles } from "./runfiles";

// Re-export the `Runfiles` class. This class if the runfile helpers need to be
// mocked for testing purposes. This is used by the linker but also publicly exposed.
export {Runfiles};
// Re-export a RegExp for matching `bazel-out` paths. This is used by the linker
// but not intended for public use.
export {BAZEL_OUT_REGEX as _BAZEL_OUT_REGEX};
export { Runfiles };

/** Instance of the runfile helpers. */
export const runfiles = new Runfiles(process.env);

0 comments on commit 3eed8d4

Please sign in to comment.