How to use the @loopback/boot.discoverFiles function in @loopback/boot

To help you get started, we’ve selected a few @loopback/boot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github strongloop / loopback-next / packages / v3compat / src / boot / lb3-model-booter.ts View on Github external
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);
  }

@loopback/boot

A collection of Booters for LoopBack 4 Applications

MIT
Latest version published 30 days ago

Package Health Score

89 / 100
Full package analysis

Similar packages