diff --git a/src/core/config/scripts/generateNodeIndex.mjs b/src/core/config/scripts/generateNodeIndex.mjs index 00b2470b..dce565de 100644 --- a/src/core/config/scripts/generateNodeIndex.mjs +++ b/src/core/config/scripts/generateNodeIndex.mjs @@ -67,7 +67,7 @@ function generateChef() { `; Object.keys(operations).forEach((op) => { - code += ` ${decapitalise(op)}: wrap(core_${op}),\n`; + code += ` '${decapitalise(op)}': wrap(core_${op}),\n`; }); code += ` }; @@ -78,7 +78,7 @@ const chef = generateChef(); `; Object.keys(operations).forEach((op) => { - code += `const ${decapitalise(op)} = chef[${decapitalise(op)}];\n`; + code += `const ${decapitalise(op)} = chef['${decapitalise(op)}'];\n`; }); code +=`