29 lines
890 B
Diff
29 lines
890 B
Diff
|
From e30bec29ad5d960d8fe0e6d3427601d49d0746ea Mon Sep 17 00:00:00 2001
|
||
|
From: Max <max@privatevoid.net>
|
||
|
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
|
||
|
|