From f8871a5e805e00dda531650148d0b6ac14b8fc34 Mon Sep 17 00:00:00 2001 From: Richard Sustek Date: Mon, 16 Sep 2024 11:33:43 +0200 Subject: [PATCH] Fixes update version script --- lib/meta/metadata.ts | 5 ++--- scripts/update-version.ts | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/meta/metadata.ts b/lib/meta/metadata.ts index f1512cd..21c3b7a 100644 --- a/lib/meta/metadata.ts +++ b/lib/meta/metadata.ts @@ -1,6 +1,5 @@ - export const libMetadata = { - name: '@kontent-ai/model-generator', - timestamp: Mon, 16 Sep 2024 09:31:58 GMT, + name: '@kontent-ai/model-generator', + timestamp: 'Mon, 16 Sep 2024 09:31:58 GMT', version: '8.0.0-0' }; diff --git a/scripts/update-version.ts b/scripts/update-version.ts index 148afe2..d82e176 100644 --- a/scripts/update-version.ts +++ b/scripts/update-version.ts @@ -15,7 +15,7 @@ function createVersionFile(date: Date, filePath: string, propertyName: string): const src = ` export const ${propertyName} = { name: '${PackageJson.name}', - timestamp: ${date.toUTCString()}, + timestamp: '${date.toUTCString()}', version: '${PackageJson.version}' }; `;