[repo] Release: version 1.0.0, its notes, About shows the running version; nix-pin --check prints the pin it would write
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
// Copyright (c) 2026 Marek Novák. Part of Ianitor, under the Common Public Attribution
|
||||
// License 1.0: see LICENSE (its Exhibit A is this file's notice).
|
||||
|
||||
import { readFileSync } from "node:fs";
|
||||
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
||||
import { defineConfig } from "vitest/config";
|
||||
|
||||
@@ -11,9 +12,12 @@ import { defineConfig } from "vitest/config";
|
||||
// $IANITOR_DEV_TOKEN, which `ianitor-control --dev` prints.
|
||||
const control = process.env.IANITOR_CONTROL ?? "http://127.0.0.1:7878";
|
||||
const token = process.env.IANITOR_DEV_TOKEN;
|
||||
// The version Settings, About shows: package.json's, which scripts/check-version.mjs keeps equal to Cargo.toml's.
|
||||
const version: string = JSON.parse(readFileSync(new URL("./package.json", import.meta.url), "utf8")).version;
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [svelte()],
|
||||
define: { __IANITOR_VERSION__: JSON.stringify(version) },
|
||||
server: {
|
||||
host: "127.0.0.1",
|
||||
port: 5173,
|
||||
|
||||
Reference in New Issue
Block a user