typedelectron/ts/paths.ts

8 lines
299 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(
plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url)
);
export const assetsDir = plugins.path.join(packageDir, 'assets');
export const preloadScriptPath = plugins.path.join(assetsDir, 'preload.js');