From b1a8a5527e83795698e67e8bf62bcc13be43bce4 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Tue, 15 Apr 2025 16:06:27 +0000 Subject: [PATCH] fix(website_update): Await supplyVariables call in website update template --- changelog.md | 6 ++++++ ts/00_commitinfo_data.ts | 2 +- ts/mod_format/format.templates.ts | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 7c3773d..91b06b0 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2025-04-15 - 1.15.2 - fix(website_update) +Await supplyVariables call in website update template + +- Changed website template update to properly await the supplyVariables method +- Ensured asynchronous consistency in updating website template variables + ## 2025-04-15 - 1.15.1 - fix(cli) Refresh internal CLI tooling and configuration for consistency. diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 579afca..d9af2f0 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/cli', - version: '1.15.1', + version: '1.15.2', description: 'A comprehensive CLI tool for enhancing and managing local development workflows with gitzone utilities, focusing on project setup, version control, code formatting, and template management.' } diff --git a/ts/mod_format/format.templates.ts b/ts/mod_format/format.templates.ts index 2e02fce..4a1f05d 100644 --- a/ts/mod_format/format.templates.ts +++ b/ts/mod_format/format.templates.ts @@ -57,7 +57,7 @@ export const run = async (project: Project) => { // update html if (project.gitzoneConfig.data.projectType === 'website') { const websiteUpdateTemplate = await templateModule.getTemplate('website_update'); - websiteUpdateTemplate.supplyVariables({ + await websiteUpdateTemplate.supplyVariables({ assetbrokerUrl: project.gitzoneConfig.data.module.assetbrokerUrl, legalUrl: project.gitzoneConfig.data.module.legalUrl, })