MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / resolveRelativeImport

Function resolveRelativeImport

scripts/check-codex-native-api-boundary.mjs:55–61  ·  view source on GitHub ↗
(fromFile, specifier)

Source from the content-addressed store, hash-verified

53}
54
55function resolveRelativeImport(fromFile, specifier) {
56 const resolved = path.resolve(path.dirname(fromFile), specifier);
57 if (path.extname(resolved)) {
58 return resolved;
59 }
60 return `${resolved}.ts`;
61}
62
63function normalizeText(text) {
64 return text.replace(/\r\n/g, '\n').trim();

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected