mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-08-04 10:01:47 +00:00
Simplify package.json build and start scripts
Move reading readme and versions out of package.json
This commit is contained in:
@@ -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('##')
|
||||
|
||||
Reference in New Issue
Block a user