MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / getProjectAppRelativePath

Function getProjectAppRelativePath

packages/vite/helpers/utils.ts:142–147  ·  view source on GitHub ↗
(subPath = '')

Source from the content-addressed store, hash-verified

140}
141
142export function getProjectAppRelativePath(subPath = ''): string {
143 const base = computeProjectAppPath();
144 const cleanSub = normalizePathSegment(subPath);
145 if (!cleanSub) return base;
146 return `${base}/${cleanSub}`.replace(/\/+/g, '/');
147}
148
149export function getProjectAppAbsolutePath(subPath = ''): string {
150 const rel = getProjectAppRelativePath(subPath);

Callers 6

main-entry.tsFile · 0.85
loadFunction · 0.85
getProjectAppVirtualPathFunction · 0.85
resolveFromAppRootFunction · 0.85
websocket.tsFile · 0.85

Calls 3

computeProjectAppPathFunction · 0.85
normalizePathSegmentFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected