typedelectron/ts/paths.ts
2023-12-06 02:16:36 +01:00

8 lines
299 B
TypeScript

import * as plugins from './plugins.js';
export const packageDir = plugins.path.join(
plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url)
);
export const assetsDir = plugins.path.join(packageDir, 'assets');
export const preloadScriptPath = plugins.path.join(assetsDir, 'preload.js');