This commit is contained in:
Frederik Hummel 2020-10-03 11:32:42 +02:00
parent 5f1a9d0280
commit 00e44027e0

View File

@ -278,10 +278,10 @@ function createTypeOrmConfig(
): void {
const templatePath = path.resolve(__dirname, "templates", "ormconfig.mst");
const template = fs.readFileSync(templatePath, "utf-8");
const compliedTemplate = Handlebars.compile(template, {
const compiledTemplate = Handlebars.compile(template, {
noEscape: true,
});
const rendered = compliedTemplate(connectionOptions);
const rendered = compiledTemplate(connectionOptions);
const formatted = Prettier.format(rendered, { parser: "json" });
const resultFilePath = path.resolve(outputPath, "ormconfig.json");
fs.writeFileSync(resultFilePath, formatted, {