refactor(infra): remove stale utility re-exports · openclaw/openclaw@37ac0f0
vincentkoc
·
2026-06-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -20,10 +20,10 @@ vi.mock("node:fs/promises", async () => {
|
20 | 20 | }; |
21 | 21 | }); |
22 | 22 | |
| 23 | +import { resolveStableNodePath } from "../infra/stable-node-path.js"; |
23 | 24 | import { |
24 | 25 | renderSystemNodeWarning, |
25 | 26 | resolvePreferredNodePath, |
26 | | -resolveStableNodePath, |
27 | 27 | resolveSystemNodeInfo, |
28 | 28 | } from "./runtime-paths.js"; |
29 | 29 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -198,8 +198,6 @@ export function renderSystemNodeWarning(
|
198 | 198 | const selectedLabel = selectedNodePath ? ` Using ${selectedNodePath} for the daemon.` : ""; |
199 | 199 | return `System Node ${versionLabel} at ${systemNode.path} is below the required Node 22.19+.${selectedLabel} Install Node 24 (recommended) or Node 22 LTS from nodejs.org or Homebrew.`; |
200 | 200 | } |
201 | | -export { resolveStableNodePath }; |
202 | | - |
203 | 201 | /** Resolves the Node binary the daemon should use for a node runtime. */ |
204 | 202 | export async function resolvePreferredNodePath(params: { |
205 | 203 | env?: Record<string, string | undefined>; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,8 +4,6 @@ import fs from "node:fs";
|
4 | 4 | import path from "node:path"; |
5 | 5 | import { tryReadJsonSync, writeJsonSync } from "@openclaw/fs-safe/json"; |
6 | 6 | |
7 | | -export { tryReadJsonSync, writeJsonSync }; |
8 | | - |
9 | 7 | function resolveJsonSymlinkTarget(pathname: string): string | undefined { |
10 | 8 | let stat: fs.Stats; |
11 | 9 | try { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。