mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-29 12:53:35 +01:00
Qualify CJS-only module imports
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
// Copyright 2018 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { readJsonSync, writeJsonSync } from 'fs-extra';
|
||||
import fsExtra from 'fs-extra';
|
||||
|
||||
import { orderBy } from 'lodash';
|
||||
import lodash from 'lodash';
|
||||
|
||||
import type { ExceptionType } from './types.js';
|
||||
|
||||
const { readJsonSync, writeJsonSync } = fsExtra;
|
||||
|
||||
const { orderBy } = lodash;
|
||||
|
||||
export const ENCODING = 'utf8';
|
||||
|
||||
export const loadJSON = <T>(path: string): T => readJsonSync(path);
|
||||
|
||||
Reference in New Issue
Block a user