From 3466f4e452eefcd7401c8450e4df3e45e2cb3c14 Mon Sep 17 00:00:00 2001 From: d98762625 Date: Fri, 31 Aug 2018 15:17:33 +0100 Subject: [PATCH] add help, bake to top level export so theyre in the expected place in ES5 chef --- src/node/config/scripts/generateNodeIndex.mjs | 7 +++++-- src/node/index.mjs | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/node/config/scripts/generateNodeIndex.mjs b/src/node/config/scripts/generateNodeIndex.mjs index 3b68028b..140fa029 100644 --- a/src/node/config/scripts/generateNodeIndex.mjs +++ b/src/node/config/scripts/generateNodeIndex.mjs @@ -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"; diff --git a/src/node/index.mjs b/src/node/index.mjs index c879614e..7a593826 100644 --- a/src/node/index.mjs +++ b/src/node/index.mjs @@ -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, };