MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / includeManifest

Method includeManifest

tools/mcpack.js:1102–1110  ·  view source on GitHub ↗
(include, from, directory)

Source from the content-addressed store, hash-verified

1100 return builtins;
1101 }
1102 includeManifest(include, from, directory) {
1103 this.currentDirectory = directory;
1104 if ("string" !== typeof include)
1105 return;
1106 let path = this.resolveFilePath(this.resolveVariable(include));
1107 if (!path)
1108 throw new Error("'" + include + "': manifest not found!");
1109 this.parseManifest(path, from);
1110 }
1111 mapBuiltins(builtins) {
1112 const map = new Map;
1113 builtins.forEach(builtin => {

Callers 2

runMethod · 0.45
parseManifestMethod · 0.45

Calls 3

resolveFilePathMethod · 0.80
resolveVariableMethod · 0.45
parseManifestMethod · 0.45

Tested by

no test coverage detected