forked from netless-io/flat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.js
More file actions
26 lines (19 loc) · 892 Bytes
/
constants.js
File metadata and controls
26 lines (19 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const { join } = require("path");
const rootPath = join(__dirname, "..");
const configPath = join(rootPath, "config");
const packagesPath = join(rootPath, "packages");
const desktopPath = join(rootPath, "desktop");
const mainPath = join(desktopPath, "main-app");
const rendererPath = join(desktopPath, "renderer-app");
const rootPackageJSONPath = join(rootPath, "package.json");
const mainPackageJSONPath = join(mainPath, "package.json");
const version = require(mainPackageJSONPath).version;
module.exports.rootPath = rootPath;
module.exports.configPath = configPath;
module.exports.packagesPath = packagesPath;
module.exports.desktopPath = desktopPath;
module.exports.mainPath = mainPath;
module.exports.rendererPath = rendererPath;
module.exports.rootPackageJSONPath = rootPackageJSONPath;
module.exports.mainPackageJSONPath = mainPackageJSONPath;
module.exports.version = version;