electron: Fix JSON imports

This commit is contained in:
Elian Doran 2024-07-24 20:52:46 +03:00
parent 7fb3abb4ea
commit 6006d01f8b
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ import log from "../services/log.js";
import env from "../services/env.js";
import utils from "../services/utils.js";
import protectedSessionService from "../services/protected_session.js";
import packageJson from "../../package.json";
import packageJson from "../../package.json" with { type: "json" };
import assetPath from "../services/asset_path.js";
import appPath from "../services/app_path.js";
import { Request, Response } from 'express';

View File

@ -1,7 +1,7 @@
"use strict";
import build from "./build.js";
import packageJson from "../../package.json";
import packageJson from "../../package.json" with { type: "json" };
import dataDir from "./data_dir.js";
const APP_DB_VERSION = 228;

View File

@ -5,7 +5,7 @@ import dateUtils from "../date_utils.js";
import path from "path";
import mimeTypes from "mime-types";
import mdService from "./md.js";
import packageInfo from "../../../package.json";
import packageInfo from "../../../package.json" with { type: "json" };
import utils from "../utils.js";
import protectedSessionService from "../protected_session.js";
import sanitize from "sanitize-filename";