add help, bake to top level export so theyre in the expected place in ES5 chef

This commit is contained in:
d98762625 2018-08-31 15:17:33 +01:00
parent b36e3adf7c
commit 3466f4e452
2 changed files with 10 additions and 4 deletions

View File

@ -108,7 +108,8 @@ Object.keys(operations).forEach((op) => {
code += `];
chef.bake = bake(operations);
const prebaked = bake(operations);
chef.bake = prebaked;
export default chef;
// Operations as top level exports.
@ -120,7 +121,9 @@ Object.keys(operations).forEach((op) => {
code += ` ${decapitalise(op)},\n`;
});
code += " SyncDish as Dish\n";
code += " SyncDish as Dish,\n";
code += " prebaked as bake,\n";
code += " help,\n";
code += "};\n";

View File

@ -1044,7 +1044,8 @@ const operations = [
zlibInflate,
];
chef.bake = bake(operations);
const prebaked = bake(operations);
chef.bake = prebaked
export default chef;
// Operations as top level exports.
@ -1302,5 +1303,7 @@ export {
zip,
zlibDeflate,
zlibInflate,
SyncDish as Dish
SyncDish as Dish,
prebaked as bake,
help,
};