I'm using firebase functions with typescript similar to this instruction. However, I want to keep all tsc compilation result in a separate build folder, so after tsc
my project folder look like this:
myApp
|__ functions
|__ src/index.ts
|__ build/src/index.js
How can I let firebase find build/src/index.js
instead of ./index.js
? There doesn't seem to be a firebase deploy option for this.
Currently I have to cp build/src/index.js .
in my npm scripts but it feels like a hack.