typedelectron/ts/paths.ts

9 lines
309 B
TypeScript
Raw Normal View History

2023-12-06 01:16:36 +00:00
import * as plugins from './plugins.js';
export const packageDir = plugins.path.join(
2023-12-06 02:05:05 +00:00
plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url),
'../',
2023-12-06 01:16:36 +00:00
);
export const assetsDir = plugins.path.join(packageDir, 'assets');
export const preloadScriptPath = plugins.path.join(assetsDir, 'preload.js');