MCPcopy Create free account
hub / github.com/arktypeio/arktype / realPathOf

Function realPathOf

ark/aot/host.ts:252–258  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

250 isAbsolute(id) ? realPathOf(id) : id
251
252export const realPathOf = (path: string): string => {
253 try {
254 return realpathSync.native(path)
255 } catch {
256 return resolve(path)
257 }
258}
259
260export const printablePathOf = (from: string, to: string): string =>
261 relative(from, to).split(sep).join("/")

Callers 15

sourcesOfFunction · 0.90
checkFunction · 0.90
turbopack.tsFile · 0.90
isRuntimeShimFunction · 0.90
runtimeShimOfFunction · 0.90
withPrecompileFunction · 0.90
createPrecompilerFunction · 0.90
bundlerResolverOfFunction · 0.90
createKeyedPrecompilerFunction · 0.90
filenameOfFunction · 0.90
realCwdFunction · 0.90
untransformedProblemOfFunction · 0.90

Calls 1

resolveFunction · 0.70

Tested by

no test coverage detected