mirror of
https://github.com/murashit/codex-panel.git
synced 2026-07-22 06:57:10 +00:00
Read panel client version from manifest
This commit is contained in:
parent
079b9c2500
commit
95d2735a81
3 changed files with 14 additions and 1 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import manifest from "../manifest.json";
|
||||
|
||||
export const VIEW_TYPE_CODEX_PANEL = "codex-panel-view";
|
||||
export const DEFAULT_CODEX_PATH = "codex";
|
||||
export const CLIENT_VERSION = "0.1.0";
|
||||
export const CLIENT_VERSION = manifest.version;
|
||||
|
|
|
|||
10
tests/constants.test.ts
Normal file
10
tests/constants.test.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { describe, expect, it } from "vitest";
|
||||
|
||||
import manifest from "../manifest.json";
|
||||
import { CLIENT_VERSION } from "../src/constants";
|
||||
|
||||
describe("constants", () => {
|
||||
it("uses the manifest version for the panel client version", () => {
|
||||
expect(CLIENT_VERSION).toBe(manifest.version);
|
||||
});
|
||||
});
|
||||
|
|
@ -6,6 +6,7 @@
|
|||
"module": "ESNext",
|
||||
"moduleResolution": "Bundler",
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"resolveJsonModule": true,
|
||||
"strict": true,
|
||||
"skipLibCheck": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue