george43g / better-firebase-functions

This repo provides functionality for a better way of organising files, imports and function triggers in Firebase Cloud Functions
Mozilla Public License 2.0
181 stars 15 forks source link

Not finding functions #12

Closed skwny closed 2 years ago

skwny commented 4 years ago

Hi, none of my functions are building with this. I'm using as follows:

import { exportFunctions } from 'better-firebase-functions';

exportFunctions({
  // standard node var (leave as is).
  __filename,
  // standard node var (leave as is).
  exports,
  // define root functions folder relative to this file.
  functionDirectoryPath: './app/functions/*',
  searchGlob: '**/*.f.ts',
})

Normally I use ng build to handle the build, not sure if that matters.

dmba commented 3 years ago

@skwny I think you need to change **/*.f.ts to **/*.f.js.

george43g commented 2 years ago

The github code has been updated with a sensible default now, searching for both ts and js files.