Streamline management of API collections #1
@@ -492,7 +492,7 @@ function writeEnvironmentTemplates(sourceDir, outputRoot) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const templateContent = variableNames.length > 0 ? `${variableNames.join('\n')}\n` : '';
|
const templateContent = variableNames.length > 0 ? `${variableNames.map(v => `${v}={{${v}}}`).join('\n')}\n` : '';
|
||||||
fs.writeFileSync(path.join(targetDir, '.env.template'), templateContent, 'utf8');
|
fs.writeFileSync(path.join(targetDir, '.env.template'), templateContent, 'utf8');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user