mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-19 16:08:34 +01:00
Remove use of __dirname from main process
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
import { parse } from 'csv-parse';
|
||||
import fs from 'node:fs/promises';
|
||||
import { join } from 'node:path';
|
||||
import { z } from 'zod';
|
||||
import { _getAvailableLocales } from '../../app/locale.node.js';
|
||||
import { parseUnknown } from '../util/schemas.std.js';
|
||||
@@ -21,8 +22,9 @@ if (!process.argv[4]) {
|
||||
throw new Error('Missing third argument: output json file');
|
||||
}
|
||||
const localeDisplayNamesBuildPath = process.argv[4];
|
||||
const rootDir = join(__dirname, '..', '..');
|
||||
|
||||
const availableLocales = _getAvailableLocales();
|
||||
const availableLocales = _getAvailableLocales(rootDir);
|
||||
|
||||
const LocaleString = z.string().refine(arg => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user