MCPcopy Index your code
hub / github.com/Moddable-OpenSource/moddable / filter

Method filter

tools/mcmanifest.js:1938–1944  ·  view source on GitHub ↗
(tool, sources)

Source from the content-addressed store, hash-verified

1936 this.close();
1937 }
1938 static filter(tool, sources) {
1939 const MODDABLE = tool.environment.MODDABLE;
1940 const modules = MODDABLE + tool.slash + "modules" + tool.slash;
1941 const build = MODDABLE + tool.slash + "build" + tool.slash;
1942 const node = tool.slash + "node_modules" + tool.slash;
1943 return sources.filter(item => !item.source.startsWith(modules) && !item.source.startsWith(build) && !item.source.includes(node) && !item.source.endsWith(".json"));
1944 }
1945}
1946
1947export class FormatFile extends PrerequisiteFile {

Callers 2

generateModulesRulesMethod · 0.45
generateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected