Not finding functions
skwny opened this issue · comments
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.