From 033c0a2889ec62ffbb3c489676fb315b3780ba60 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 15 Mar 2022 18:15:23 +0100 Subject: [PATCH 1/9] packageDirectory --- libs/process.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/process.js b/libs/process.js index 9f3852e..b19384a 100644 --- a/libs/process.js +++ b/libs/process.js @@ -30,8 +30,10 @@ module.exports = function(process,__dirname){ isWin : (process.platform === 'win32' || process.platform === 'win64'), //UTC Offset utcOffset : require('moment')().utcOffset(), - //directory path for this file + //directory path for cwd mainDirectory : process.cwd(), + //directory path for this file + packageDirectory : require('path').resolve(__dirname), //time start timeStarted : new Date() -- 2.35.1