version fetched from package.json

This commit is contained in:
ildoc
2025-11-18 12:35:12 +01:00
parent bbafb11246
commit ad915b7527
12 changed files with 29 additions and 24 deletions

View File

@@ -5,7 +5,7 @@ import { createIcons, icons } from 'lucide';
import * as pdfjsLib from 'pdfjs-dist';
import '../css/styles.css';
import { formatStars } from './utils/helpers.js';
import '../version.js';
import { APP_VERSION, injectVersion } from '../version.js';
const init = () => {
pdfjsLib.GlobalWorkerOptions.workerSrc = new URL(
@@ -95,7 +95,7 @@ const init = () => {
© 2025 BentoPDF. All rights reserved.
</p>
<p class="text-gray-500 text-xs mt-2">
Version <span id="app-version-simple">1.6.2</span>
Version <span id="app-version-simple">${APP_VERSION}</span>
</p>
</div>
`;