emitDecoratorMetadata typescript compiler option, import the emitDecoratorMetadata build extension and use it in your trigger.config.ts file:
emitDecoratorMetadata hooks into the esbuild bundle process and uses the TypeScript compiler API
to compile files containing decorators. Enable emitDecoratorMetadata in your tsconfig.json and
install typescript in your devDependencies.
