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

Method includeManifestPath

tools/mcmanifest.js:2788–2798  ·  view source on GitHub ↗
(include)

Source from the content-addressed store, hash-verified

2786 this.currentDirectory = currentDirectory;
2787 }
2788 includeManifestPath(include) {
2789 let path = this.resolveFilePath(include);
2790 if (!path)
2791 throw new Error("'" + include + "': manifest not found!");
2792 if (!this.manifests.already[path]) {
2793 var parts = this.splitPath(path);
2794 this.currentDirectory = parts.directory;
2795 var manifest = this.parseManifest(path);
2796 manifest.directory = parts.directory;
2797 }
2798 }
2799 matchPlatform(platforms, name, simple) {
2800 let parts = name.split("/");
2801 while (parts.length) {

Callers 1

includeManifestMethod · 0.95

Calls 2

parseManifestMethod · 0.95
resolveFilePathMethod · 0.80

Tested by

no test coverage detected