MCPcopy Create free account
hub / github.com/GrapesJS/cli / resolveRoot

Function resolveRoot

src/init.ts:37–39  ·  view source on GitHub ↗
(pth: string)

Source from the content-addressed store, hash-verified

35};
36
37const resolveRoot = (pth: string) => {
38 return path.resolve(rootPath, pth);
39};
40
41const resolveLocal = (pth: string) => {
42 return path.resolve(__dirname, `${tmpPath}/${pth}`);

Callers 5

createSourceFilesFunction · 0.85
createFileComponentsFunction · 0.85
createFileBlocksFunction · 0.85
createI18nFunction · 0.85
createPackageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected