How to use the @fullstack-one/helper.AHelper.requireFilesByGlobPattern function in @fullstack-one/helper

To help you get started, we’ve selected a few @fullstack-one/helper 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 fullstack-build / fullstack-one / packages / schema-builder / lib / index.ts View on Github external
private async loadPermissions(): Promise {
    const permissionsPattern = this.ENVIRONMENT.path + this.schemaBuilderConfig.permissionsPattern;
    const permissionsArray: IPermission[] = await AHelper.requireFilesByGlobPattern(permissionsPattern);
    this.logger.trace("boot", "Permissions loaded");
    const decoratorPermissions = getDecoratorPermissions();
    return [].concat.apply([], permissionsArray).concat(decoratorPermissions);
  }