@modernpoacher/deps 2.3.6 → 2.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -41,7 +41,7 @@ export const formatDirectory = PLATFORM === 'win32'
|
|
|
41
41
|
? (directory) => resolve(normalize(directory.trim()))
|
|
42
42
|
: (directory) => {
|
|
43
43
|
const d = directory.trim()
|
|
44
|
-
if (d.startsWith(HOME)) return resolve(normalize(d.replace(new RegExp('^' + HOME), '~')
|
|
44
|
+
if (d.startsWith(HOME)) return resolve(normalize(d)).replace(new RegExp('^' + HOME), '~')
|
|
45
45
|
return d
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -111,7 +111,7 @@ export function use (key) {
|
|
|
111
111
|
const s = v.trim()
|
|
112
112
|
if (s) {
|
|
113
113
|
if (s.startsWith(HOME)) {
|
|
114
|
-
log(resolve(normalize(s.replace(new RegExp('^' + HOME), '~'))
|
|
114
|
+
log(resolve(normalize(s)).replace(new RegExp('^' + HOME), '~'))
|
|
115
115
|
} else {
|
|
116
116
|
log(v.trimEnd())
|
|
117
117
|
}
|
package/src/common/git/index.mjs
CHANGED
|
@@ -135,7 +135,7 @@ export function out (key, directory) {
|
|
|
135
135
|
const s = v.trim()
|
|
136
136
|
if (s) {
|
|
137
137
|
if (s.startsWith(HOME)) {
|
|
138
|
-
log(resolve(normalize(s.replace(new RegExp('^' + HOME), '~'))
|
|
138
|
+
log(resolve(normalize(s)).replace(new RegExp('^' + HOME), '~'))
|
|
139
139
|
} else {
|
|
140
140
|
log(v.trimEnd())
|
|
141
141
|
}
|
|
@@ -183,7 +183,7 @@ export function err (key, directory) {
|
|
|
183
183
|
const s = v.trim()
|
|
184
184
|
if (s) {
|
|
185
185
|
if (s.startsWith(HOME)) {
|
|
186
|
-
log(resolve(normalize(s.replace(new RegExp('^' + HOME), '~'))
|
|
186
|
+
log(resolve(normalize(s)).replace(new RegExp('^' + HOME), '~'))
|
|
187
187
|
} else {
|
|
188
188
|
log(v.trimEnd())
|
|
189
189
|
}
|