Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 6006d01

Browse files
committed
electron: Fix JSON imports
1 parent 7fb3abb commit 6006d01

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/routes/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import log from "../services/log.js";
88
import env from "../services/env.js";
99
import utils from "../services/utils.js";
1010
import protectedSessionService from "../services/protected_session.js";
11-
import packageJson from "../../package.json";
11+
import packageJson from "../../package.json" with { type: "json" };
1212
import assetPath from "../services/asset_path.js";
1313
import appPath from "../services/app_path.js";
1414
import { Request, Response } from 'express';

src/services/app_info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use strict";
22

33
import build from "./build.js";
4-
import packageJson from "../../package.json";
4+
import packageJson from "../../package.json" with { type: "json" };
55
import dataDir from "./data_dir.js";
66

77
const APP_DB_VERSION = 228;

src/services/export/zip.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import dateUtils from "../date_utils.js";
55
import path from "path";
66
import mimeTypes from "mime-types";
77
import mdService from "./md.js";
8-
import packageInfo from "../../../package.json";
8+
import packageInfo from "../../../package.json" with { type: "json" };
99
import utils from "../utils.js";
1010
import protectedSessionService from "../protected_session.js";
1111
import sanitize from "sanitize-filename";

0 commit comments

Comments
 (0)