george43g / better-firebase-functions

This repo provides functionality for a better way of organising files, imports and function triggers in Firebase Cloud Functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not finding functions

skwny opened this issue · comments

commented

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.

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

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