MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / canonicalId

Function canonicalId

vmm/ui/build.mjs:20–22  ·  view source on GitHub ↗
(absPath)

Source from the content-addressed store, hash-verified

18const nodeRequire = createRequire(path.join(ROOT, 'package.json'));
19
20function canonicalId(absPath) {
21 return path.relative(ROOT, absPath).split(path.sep).join('/');
22}
23
24function resolveModule(parentId, request) {
25 const base = parentId ? path.dirname(path.resolve(ROOT, parentId)) : MODULE_DIR;

Callers 2

resolveModuleFunction · 0.85
buildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected