@modernpoacher/deps 2.3.5 → 2.3.6
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/bin/node/execute.mjs
CHANGED
|
@@ -277,7 +277,7 @@ function toExcludePatterns (directory) {
|
|
|
277
277
|
async function * genDirectory (directory) {
|
|
278
278
|
log('genDirectory')
|
|
279
279
|
|
|
280
|
-
for await (const
|
|
280
|
+
for await (const p of glob(toPackagePatterns(directory), { exclude: toExcludePatterns (directory) })) yield dirname(p)
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
/**
|
package/package.json
CHANGED
|
@@ -40,8 +40,8 @@ export function formatAuthor (name, email) {
|
|
|
40
40
|
export const formatDirectory = PLATFORM === 'win32'
|
|
41
41
|
? (directory) => resolve(normalize(directory.trim()))
|
|
42
42
|
: (directory) => {
|
|
43
|
-
const d =
|
|
44
|
-
if (d.startsWith(HOME)) return d.replace(new RegExp('^' + HOME), '~')
|
|
43
|
+
const d = directory.trim()
|
|
44
|
+
if (d.startsWith(HOME)) return resolve(normalize(d.replace(new RegExp('^' + HOME), '~')))
|
|
45
45
|
return d
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -111,8 +111,7 @@ export function use (key) {
|
|
|
111
111
|
const s = v.trim()
|
|
112
112
|
if (s) {
|
|
113
113
|
if (s.startsWith(HOME)) {
|
|
114
|
-
|
|
115
|
-
log(d.replace(new RegExp('^' + HOME), '~'))
|
|
114
|
+
log(resolve(normalize(s.replace(new RegExp('^' + HOME), '~'))))
|
|
116
115
|
} else {
|
|
117
116
|
log(v.trimEnd())
|
|
118
117
|
}
|
package/src/common/git/index.mjs
CHANGED
|
@@ -135,8 +135,7 @@ export function out (key, directory) {
|
|
|
135
135
|
const s = v.trim()
|
|
136
136
|
if (s) {
|
|
137
137
|
if (s.startsWith(HOME)) {
|
|
138
|
-
|
|
139
|
-
log(d.replace(new RegExp('^' + HOME), '~'))
|
|
138
|
+
log(resolve(normalize(s.replace(new RegExp('^' + HOME), '~'))))
|
|
140
139
|
} else {
|
|
141
140
|
log(v.trimEnd())
|
|
142
141
|
}
|
|
@@ -184,8 +183,7 @@ export function err (key, directory) {
|
|
|
184
183
|
const s = v.trim()
|
|
185
184
|
if (s) {
|
|
186
185
|
if (s.startsWith(HOME)) {
|
|
187
|
-
|
|
188
|
-
log(d.replace(new RegExp('^' + HOME), '~'))
|
|
186
|
+
log(resolve(normalize(s.replace(new RegExp('^' + HOME), '~'))))
|
|
189
187
|
} else {
|
|
190
188
|
log(v.trimEnd())
|
|
191
189
|
}
|