refactor: hide tooling internals · openclaw/openclaw@e96365b
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -33,7 +33,7 @@ export function resolveSourceRoots(repoRoot, relativeRoots) {
|
33 | 33 | return relativeRoots.map((root) => path.join(repoRoot, ...root.split("/").filter(Boolean))); |
34 | 34 | } |
35 | 35 | |
36 | | -export function isTestLikeTypeScriptFile(filePath, options = {}) { |
| 36 | +function isTestLikeTypeScriptFile(filePath, options = {}) { |
37 | 37 | const extraTestSuffixes = options.extraTestSuffixes ?? []; |
38 | 38 | return [...baseTestSuffixes, ...extraTestSuffixes].some((suffix) => filePath.endsWith(suffix)); |
39 | 39 | } |
@@ -175,7 +175,7 @@ export function collectCallExpressionLines(ts, sourceFile, resolveLineNode) {
|
175 | 175 | return lines; |
176 | 176 | } |
177 | 177 | |
178 | | -export function isDirectExecution(importMetaUrl) { |
| 178 | +function isDirectExecution(importMetaUrl) { |
179 | 179 | const entry = process.argv[1]; |
180 | 180 | if (!entry) { |
181 | 181 | return false; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。