Simplify package.json build and start scripts

Move reading readme and versions out of package.json
This commit is contained in:
Przemek Więch
2026-04-29 00:11:06 +02:00
parent 70982305ce
commit d39143e21d
4 changed files with 22 additions and 7 deletions

View File

@@ -5,6 +5,7 @@ import remarkParse from 'remark-parse';
import remarkRehype from 'remark-rehype';
import {Button, Header, Modal} from 'semantic-ui-react';
import {unified} from 'unified';
import changelog from '../CHANGELOG.md?raw';
const LAST_SEEN_VERSION_KEY = 'last_seen_version';
@@ -19,7 +20,6 @@ export async function getChangelog(maxVersions: number, seenVersion?: string) {
? Date.parse(seenVersion.slice(0, 10))
: 0;
const changelog = import.meta.env.VITE_CHANGELOG as string;
const changes =
changelog
.split('##')

5
src/imports.d.ts vendored
View File

@@ -1,2 +1,7 @@
declare module '*.jpg';
declare module '*.png';
declare module '*?raw' {
const content: string;
export default content;
}