mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 23:49:20 +01:00
14 lines
445 B
TypeScript
14 lines
445 B
TypeScript
// Copyright 2025 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import { readFileSync } from 'node:fs';
|
|
import { join } from 'node:path';
|
|
import type { PackageJsonType } from '../types/packageJson.d.ts';
|
|
import { getAppRootDir } from './appRootDir.main.js';
|
|
|
|
const PACKAGE_JSON_PATH = join(getAppRootDir(), 'package.json');
|
|
|
|
export const packageJson: PackageJsonType = JSON.parse(
|
|
readFileSync(PACKAGE_JSON_PATH, 'utf8')
|
|
);
|