Skip to content

Commit

Permalink
build: fix screenshot functions export (#4807)
Browse files Browse the repository at this point in the history
* The Firebase CLI is not able to properly detect the Firebase functions for the screenshot project. This is because the functions are not re-exported.
  • Loading branch information
devversion authored and tinayuangao committed May 25, 2017
1 parent 6c9ca95 commit affcf5e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/screenshot-test/functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@ require('ts-node').register({
project: path.join(__dirname, 'tsconfig.json')
});

require('./screenshot-functions');
const functionExports = require('./screenshot-functions');

// Re-export every firebase function from TypeScript
Object.keys(functionExports).forEach(fnName => {
module.exports[fnName] = functionExports[fnName];
});

0 comments on commit affcf5e

Please sign in to comment.