The manifest.json file

The mainFunction defined in the manifest.json will be executed by the job runner when the job begins.

This file must export a single function, which can be used as the entry point for your custom code.

The Example job package manifest defines mainFunction as main, and in the functions array is a function called main with entry value of main.js.

This tells the job runner to find the main.js file and execute the module.exports function from that file, which in the example is:

module.exports = async function (input, info) {
  await run(input, info);
};