From 779d6d5a782a97ac1f0ae87531922edc136f2156 Mon Sep 17 00:00:00 2001 From: George Gevoian <85144792+georgegevoian@users.noreply.github.com> Date: Mon, 5 Aug 2024 00:41:37 -0400 Subject: [PATCH] Update publish.js --- buildtools/publish.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildtools/publish.js b/buildtools/publish.js index 0b1cf9f7..29df206b 100755 --- a/buildtools/publish.js +++ b/buildtools/publish.js @@ -5,6 +5,7 @@ // or: // node ./buildtools/publish.js manifest.json http://localhost:8585 +const {execSync} = require('child_process'); const fs = require('fs'); const path = require('path'); @@ -62,6 +63,8 @@ for (const folder of folders) { ); } } + config.lastUpdatedAt = execSync(`git log -1 --format=%cI ${packageFile}`, {encoding: 'utf8'}) + .trimEnd(); widgets.push(config); } }