Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async discover?(): Promise {
debug(
'Discovering LB3 model definitions in %j using glob %j',
this.root,
this.modelDefinitionsGlob,
);
const allFiles = await discoverFiles(this.modelDefinitionsGlob, this.root);
this.discoveredDefinitionFiles = allFiles.filter(
f => f[0] !== '_' && path.extname(f) === '.json',
);
debug(' -> %j', allFiles);
}