From 6038baab29e7cd440e864eac58ddc2b590ed7881 Mon Sep 17 00:00:00 2001 From: Ar Rakin <68149013+virtual-designer@users.noreply.github.com> Date: Thu, 8 Feb 2024 17:49:16 +0600 Subject: [PATCH] chore(extensions): include createdAt field in index.json --- scripts/extensions.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/extensions.js b/scripts/extensions.js index be1d9eb9d..a70553ca5 100644 --- a/scripts/extensions.js +++ b/scripts/extensions.js @@ -346,7 +346,7 @@ async function writeExtensionIndex() { const { stdout } = spawnSync(`sha512sum`, [filePath], { encoding: "utf-8", }); - const { size } = lstatSync(filePath); + const { size, birthtime } = lstatSync(filePath); const checksum = stdout.split(' ')[0]; return { @@ -354,7 +354,8 @@ async function writeExtensionIndex() { basename, version: basename.replace(`${extensionName}-`, '').replace(/\.tar\.gz$/ig, ''), checksum, - size + size, + createdAt: birthtime }; });