MCPcopy Create free account
hub / github.com/subquery/subql / getProjectRoot

Function getProjectRoot

packages/node/src/configure/SubqueryProject.spec.ts:28–34  ·  view source on GitHub ↗
(reader: Reader)

Source from the content-addressed store, hash-verified

26
27// eslint-disable-next-line jest/no-export
28export async function getProjectRoot(reader: Reader): Promise<string> {
29 if (reader instanceof LocalReader) return reader.root;
30 if (reader instanceof IPFSReader || reader instanceof GithubReader) {
31 return makeTempDir();
32 }
33 throw new Error('Un-known reader type');
34}
35
36// Inspect asset path and content
37function inspectAsset(inspectAssetPath: string) {

Callers 1

Calls 1

makeTempDirFunction · 0.90

Tested by

no test coverage detected