2020-04-26 22:13:14 +02:00
|
|
|
const { resolve, join } = require("path")
|
|
|
|
const { homedir } = require("os")
|
2020-04-28 15:39:35 +02:00
|
|
|
|
2020-02-03 10:24:25 +01:00
|
|
|
module.exports.serverFileName = relativePath =>
|
|
|
|
resolve(__dirname, "..", "node_modules", "@budibase", "server", relativePath)
|
2019-10-11 18:14:23 +02:00
|
|
|
|
2020-05-07 11:53:34 +02:00
|
|
|
module.exports.xPlatHomeDir = dir =>
|
|
|
|
dir.startsWith("~") ? join(homedir(), dir.substring(1)) : dir
|