From 2a60cbe3affa5a44089c41f846f3f6741ad571c6 Mon Sep 17 00:00:00 2001 From: Pablo Mayrgundter Date: Mon, 22 Apr 2024 01:26:13 +0200 Subject: [PATCH] print version to console --- .gitignore | 9 +++++++-- js/index.tsx | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index aa56b8b..72af54d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,13 @@ +node_modules + +# Website is built by GHA, so don't commit +docs + +# Temp files *~ #* -node_modules .DS_Store *.log log built -t \ No newline at end of file +t diff --git a/js/index.tsx b/js/index.tsx index 809906e..85db547 100644 --- a/js/index.tsx +++ b/js/index.tsx @@ -2,10 +2,12 @@ import React, {Fragment} from 'react' import {createRoot} from 'react-dom/client' import Style from './Style' import Routed from './Routed' +import pkgInfo from '../package.json' /** @returns {Fragment} */ function Root({children}) { + console.log(`Celestiary version: ${pkgInfo.version}`) return (