remove unnecessary operationConfig manipulation

This commit is contained in:
d98762625 2019-01-23 09:54:52 +00:00
parent dd4a7f9fac
commit 7522e5de33
3 changed files with 3 additions and 10 deletions

View file

@ -462,15 +462,8 @@ module.exports = function (grunt) {
generateNodeIndex: {
command: [
"echo '\n--- Regenerating node index ---'",
// Why copy and wipe OperationConfig?
// OperationConfig.json needs to be empty for build to avoid circular dependency on DetectFileType.
// We copy it to node dir so that we can use it as a search corpus in chef.help.
"echo 'Copying OperationConfig.json and wiping original'",
"cp src/core/config/OperationConfig.json src/node/config/OperationConfig.json",
// Avoid cyclic dependency
"echo 'export default {};\n' > src/core/config/modules/OpModules.mjs",
"echo '[]\n' > src/core/config/OperationConfig.json",
"echo '\n OperationConfig.json copied to src/node/config. Modules wiped.'",
"node --experimental-modules src/node/config/scripts/generateNodeIndex.mjs",
"echo '--- Node index generated. ---\n'"
].join(";"),