Remove use of __dirname from main process

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
automated-signal
2026-03-27 13:42:15 -05:00
committed by GitHub
parent 1e1f17a36b
commit cbe7b9bd1a
39 changed files with 222 additions and 337 deletions

View File

@@ -15,15 +15,15 @@ import type {
} from '../ts/types/OptionalResource.std.js';
import { OptionalResourcesDictSchema } from '../ts/types/OptionalResource.std.js';
import { createLogger } from '../ts/logging/log.std.js';
import { getGotOptions } from '../ts/updater/got.node.js';
import { getGotOptions } from '../ts/updater/got.main.js';
import { drop } from '../ts/util/drop.std.js';
import { parseUnknown } from '../ts/util/schemas.std.js';
import { getAppRootDir } from '../ts/util/appRootDir.main.js';
const log = createLogger('OptionalResourceService');
const RESOURCES_DICT_PATH = join(
__dirname,
'..',
getAppRootDir(),
'build',
'optional-resources.json'
);