From 0e99738b4384d1e9e2907b7a03de879ea86bf5ff Mon Sep 17 00:00:00 2001 From: Leonardo Rossi Date: Fri, 1 Dec 2023 17:27:26 +0100 Subject: [PATCH] Sets isRuntimeContext to true before asking for fields Signed-off-by: Leonardo Rossi --- src/main/generate.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/generate.mjs b/src/main/generate.mjs index a61ed84d..38388e6a 100644 --- a/src/main/generate.mjs +++ b/src/main/generate.mjs @@ -28,6 +28,9 @@ export const prepareFolder = async (path, tempNames, logger, appName = 'appName' // Get the template variables and return them here, if the template has a generator if (template.Generator && typeof template.Generator === 'function') { const gen = new template.Generator() + gen.setConfig({ + isRuntimeContext: true + }) templateVariables[name] = gen.getConfigFieldsDefinitions() } }