@modernpoacher/deps 2.1.31 → 2.1.32
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/common/index.mjs +21 -12
- package/package.json +1 -1
- package/src/index.mjs +64 -54
- package/src/install/index.mjs +14 -8
package/bin/common/index.mjs
CHANGED
|
@@ -269,10 +269,13 @@ function rmrf (d = DIRECTORY) {
|
|
|
269
269
|
const {
|
|
270
270
|
stdout,
|
|
271
271
|
stderr
|
|
272
|
-
} = exec(commands, options, (e, v)
|
|
273
|
-
(!e)
|
|
274
|
-
|
|
275
|
-
|
|
272
|
+
} = exec(commands, options, function handleComplete (e, v) {
|
|
273
|
+
if (!e) {
|
|
274
|
+
resolve(v)
|
|
275
|
+
return
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
reject(e)
|
|
276
279
|
})
|
|
277
280
|
|
|
278
281
|
const log = use('rmrf')
|
|
@@ -296,10 +299,13 @@ function npmi (d = DIRECTORY, registry = REGISTRY, force = false) {
|
|
|
296
299
|
const {
|
|
297
300
|
stdout,
|
|
298
301
|
stderr
|
|
299
|
-
} = exec(commands, options, (e, v)
|
|
300
|
-
(!e)
|
|
301
|
-
|
|
302
|
-
|
|
302
|
+
} = exec(commands, options, function handleComplete (e, v) {
|
|
303
|
+
if (!e) {
|
|
304
|
+
resolve(v)
|
|
305
|
+
return
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
reject(e)
|
|
303
309
|
})
|
|
304
310
|
|
|
305
311
|
const log = use('npmi')
|
|
@@ -323,10 +329,13 @@ function deps (d = DIRECTORY, registry = REGISTRY, force = false) {
|
|
|
323
329
|
const {
|
|
324
330
|
stdout,
|
|
325
331
|
stderr
|
|
326
|
-
} = exec(commands, options, (e, v)
|
|
327
|
-
(!e)
|
|
328
|
-
|
|
329
|
-
|
|
332
|
+
} = exec(commands, options, function handleComplete (e, v) {
|
|
333
|
+
if (!e) {
|
|
334
|
+
resolve(v)
|
|
335
|
+
return
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
reject(e)
|
|
330
339
|
})
|
|
331
340
|
|
|
332
341
|
const log = use('deps')
|
package/package.json
CHANGED
package/src/index.mjs
CHANGED
|
@@ -156,8 +156,6 @@ export function getInstallSaveBundleCommands (deps, r, f) {
|
|
|
156
156
|
|
|
157
157
|
const commands = getInstallCommands(deps, r, f)
|
|
158
158
|
|
|
159
|
-
info(commands)
|
|
160
|
-
|
|
161
159
|
return normalizeCommands(
|
|
162
160
|
getSaveBundleParameter(commands)
|
|
163
161
|
)
|
|
@@ -179,8 +177,6 @@ export function getInstallSaveOptionalSaveExactCommands (deps, r, f) {
|
|
|
179
177
|
|
|
180
178
|
const commands = getInstallSaveExactCommands(deps, r, f)
|
|
181
179
|
|
|
182
|
-
info(commands)
|
|
183
|
-
|
|
184
180
|
return normalizeCommands(
|
|
185
181
|
getSaveOptionalParameter(commands)
|
|
186
182
|
)
|
|
@@ -202,8 +198,6 @@ export function getInstallSaveOptionalCommands (deps, r, f) {
|
|
|
202
198
|
|
|
203
199
|
const commands = getInstallCommands(deps, r, f)
|
|
204
200
|
|
|
205
|
-
info(commands)
|
|
206
|
-
|
|
207
201
|
return normalizeCommands(
|
|
208
202
|
getSaveOptionalParameter(commands)
|
|
209
203
|
)
|
|
@@ -225,8 +219,6 @@ export function getInstallSaveDevSaveExactCommands (deps, r, f) {
|
|
|
225
219
|
|
|
226
220
|
const commands = getInstallSaveExactCommands(deps, r, f)
|
|
227
221
|
|
|
228
|
-
info(commands)
|
|
229
|
-
|
|
230
222
|
return normalizeCommands(
|
|
231
223
|
getSaveDevParameter(commands)
|
|
232
224
|
)
|
|
@@ -248,8 +240,6 @@ export function getInstallSaveDevCommands (deps, r, f) {
|
|
|
248
240
|
|
|
249
241
|
const commands = getInstallCommands(deps, r, f)
|
|
250
242
|
|
|
251
|
-
info(commands)
|
|
252
|
-
|
|
253
243
|
return normalizeCommands(
|
|
254
244
|
getSaveDevParameter(commands)
|
|
255
245
|
)
|
|
@@ -271,8 +261,6 @@ export function getInstallSaveProdSaveExactCommands (deps, r, f) {
|
|
|
271
261
|
|
|
272
262
|
const commands = getInstallSaveExactCommands(deps, r, f)
|
|
273
263
|
|
|
274
|
-
info(commands)
|
|
275
|
-
|
|
276
264
|
return normalizeCommands(
|
|
277
265
|
getSaveProdParameter(commands)
|
|
278
266
|
)
|
|
@@ -294,8 +282,6 @@ export function getInstallSaveProdCommands (deps, r, f) {
|
|
|
294
282
|
|
|
295
283
|
const commands = getInstallCommands(deps, r, f)
|
|
296
284
|
|
|
297
|
-
info(commands)
|
|
298
|
-
|
|
299
285
|
return normalizeCommands(
|
|
300
286
|
getSaveProdParameter(commands)
|
|
301
287
|
)
|
|
@@ -325,15 +311,18 @@ export function installSaveBundleSaveExact (d, deps, r, f) {
|
|
|
325
311
|
const commands = getCommands(getInstallSaveBundleSaveExactCommands(deps, r, f))
|
|
326
312
|
const options = getOptions(directory)
|
|
327
313
|
|
|
328
|
-
info(commands, options)
|
|
314
|
+
info(commands) // , options)
|
|
329
315
|
|
|
330
316
|
const {
|
|
331
317
|
stdout,
|
|
332
318
|
stderr
|
|
333
|
-
} = exec(commands, options, (e, v)
|
|
334
|
-
(!e)
|
|
335
|
-
|
|
336
|
-
|
|
319
|
+
} = exec(commands, options, function handleComplete (e, v) {
|
|
320
|
+
if (!e) {
|
|
321
|
+
resolve(v)
|
|
322
|
+
return
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
reject(e)
|
|
337
326
|
})
|
|
338
327
|
|
|
339
328
|
const log = use('install-save-bundle-save-exact')
|
|
@@ -368,15 +357,18 @@ export function installSaveBundle (d, deps, r, f) {
|
|
|
368
357
|
const commands = getCommands(getInstallSaveBundleCommands(deps, r, f))
|
|
369
358
|
const options = getOptions(directory)
|
|
370
359
|
|
|
371
|
-
info(commands, options)
|
|
360
|
+
info(commands) // , options)
|
|
372
361
|
|
|
373
362
|
const {
|
|
374
363
|
stdout,
|
|
375
364
|
stderr
|
|
376
|
-
} = exec(commands, options, (e, v)
|
|
377
|
-
(!e)
|
|
378
|
-
|
|
379
|
-
|
|
365
|
+
} = exec(commands, options, function handleComplete (e, v) {
|
|
366
|
+
if (!e) {
|
|
367
|
+
resolve(v)
|
|
368
|
+
return
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
reject(e)
|
|
380
372
|
})
|
|
381
373
|
|
|
382
374
|
const log = use('install-save-bundle')
|
|
@@ -411,15 +403,18 @@ export function installSaveOptionalSaveExact (d, deps, r, f) {
|
|
|
411
403
|
const commands = getCommands(getInstallSaveOptionalSaveExactCommands(deps, r, f))
|
|
412
404
|
const options = getOptions(directory)
|
|
413
405
|
|
|
414
|
-
info(commands, options)
|
|
406
|
+
info(commands) // , options)
|
|
415
407
|
|
|
416
408
|
const {
|
|
417
409
|
stdout,
|
|
418
410
|
stderr
|
|
419
|
-
} = exec(commands, options, (e, v)
|
|
420
|
-
(!e)
|
|
421
|
-
|
|
422
|
-
|
|
411
|
+
} = exec(commands, options, function handleComplete (e, v) {
|
|
412
|
+
if (!e) {
|
|
413
|
+
resolve(v)
|
|
414
|
+
return
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
reject(e)
|
|
423
418
|
})
|
|
424
419
|
|
|
425
420
|
const log = use('install-save-otional-save-exact')
|
|
@@ -454,15 +449,18 @@ export function installSaveOptional (d, dependencies, r, f) {
|
|
|
454
449
|
const commands = getCommands(getInstallSaveOptionalCommands(dependencies, r, f))
|
|
455
450
|
const options = getOptions(directory)
|
|
456
451
|
|
|
457
|
-
info(commands, options)
|
|
452
|
+
info(commands) // , options)
|
|
458
453
|
|
|
459
454
|
const {
|
|
460
455
|
stdout,
|
|
461
456
|
stderr
|
|
462
|
-
} = exec(commands, options, (e, v)
|
|
463
|
-
(!e)
|
|
464
|
-
|
|
465
|
-
|
|
457
|
+
} = exec(commands, options, function handleComplete (e, v) {
|
|
458
|
+
if (!e) {
|
|
459
|
+
resolve(v)
|
|
460
|
+
return
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
reject(e)
|
|
466
464
|
})
|
|
467
465
|
|
|
468
466
|
const log = use('install-save-otional')
|
|
@@ -497,15 +495,18 @@ export function installSaveDevSaveExact (d, deps, r, f) {
|
|
|
497
495
|
const commands = getCommands(getInstallSaveDevSaveExactCommands(deps, r, f))
|
|
498
496
|
const options = getOptions(directory)
|
|
499
497
|
|
|
500
|
-
info(commands, options)
|
|
498
|
+
info(commands) // , options)
|
|
501
499
|
|
|
502
500
|
const {
|
|
503
501
|
stdout,
|
|
504
502
|
stderr
|
|
505
|
-
} = exec(commands, options, (e, v)
|
|
506
|
-
(!e)
|
|
507
|
-
|
|
508
|
-
|
|
503
|
+
} = exec(commands, options, function handleComplete (e, v) {
|
|
504
|
+
if (!e) {
|
|
505
|
+
resolve(v)
|
|
506
|
+
return
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
reject(e)
|
|
509
510
|
})
|
|
510
511
|
|
|
511
512
|
const log = use('install-save-dev-save-exact')
|
|
@@ -540,15 +541,18 @@ export function installSaveDev (d, deps, r, f) {
|
|
|
540
541
|
const commands = getCommands(getInstallSaveDevCommands(deps, r, f))
|
|
541
542
|
const options = getOptions(directory)
|
|
542
543
|
|
|
543
|
-
info(commands, options)
|
|
544
|
+
info(commands) // , options)
|
|
544
545
|
|
|
545
546
|
const {
|
|
546
547
|
stdout,
|
|
547
548
|
stderr
|
|
548
|
-
} = exec(commands, options, (e, v)
|
|
549
|
-
(!e)
|
|
550
|
-
|
|
551
|
-
|
|
549
|
+
} = exec(commands, options, function handleComplete (e, v) {
|
|
550
|
+
if (!e) {
|
|
551
|
+
resolve(v)
|
|
552
|
+
return
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
reject(e)
|
|
552
556
|
})
|
|
553
557
|
|
|
554
558
|
const log = use('install-save-dev')
|
|
@@ -583,15 +587,18 @@ export function installSaveProdSaveExact (d, deps, r, f) {
|
|
|
583
587
|
const commands = getCommands(getInstallSaveProdSaveExactCommands(deps, r, f))
|
|
584
588
|
const options = getOptions(directory)
|
|
585
589
|
|
|
586
|
-
info(commands, options)
|
|
590
|
+
info(commands) // , options)
|
|
587
591
|
|
|
588
592
|
const {
|
|
589
593
|
stdout,
|
|
590
594
|
stderr
|
|
591
|
-
} = exec(commands, options, (e, v)
|
|
592
|
-
(!e)
|
|
593
|
-
|
|
594
|
-
|
|
595
|
+
} = exec(commands, options, function handleComplete (e, v) {
|
|
596
|
+
if (!e) {
|
|
597
|
+
resolve(v)
|
|
598
|
+
return
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
reject(e)
|
|
595
602
|
})
|
|
596
603
|
|
|
597
604
|
const log = use('install-save-prod-save-exact')
|
|
@@ -626,15 +633,18 @@ export function installSaveProd (d, deps, r, f) {
|
|
|
626
633
|
const commands = getCommands(getInstallSaveProdCommands(deps, r, f))
|
|
627
634
|
const options = getOptions(directory)
|
|
628
635
|
|
|
629
|
-
info(commands, options)
|
|
636
|
+
info(commands) // , options)
|
|
630
637
|
|
|
631
638
|
const {
|
|
632
639
|
stdout,
|
|
633
640
|
stderr
|
|
634
|
-
} = exec(commands, options, (e, v)
|
|
635
|
-
(!e)
|
|
636
|
-
|
|
637
|
-
|
|
641
|
+
} = exec(commands, options, function handleComplete (e, v) {
|
|
642
|
+
if (!e) {
|
|
643
|
+
resolve(v)
|
|
644
|
+
return
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
reject(e)
|
|
638
648
|
})
|
|
639
649
|
|
|
640
650
|
const log = use('install-save-prod')
|
package/src/install/index.mjs
CHANGED
|
@@ -119,10 +119,13 @@ export function installSaveExact (d, p, s, r, f) {
|
|
|
119
119
|
const {
|
|
120
120
|
stdout,
|
|
121
121
|
stderr
|
|
122
|
-
} = exec(commands, options, (e, v)
|
|
123
|
-
(!e)
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
} = exec(commands, options, function handleComplete (e, v) {
|
|
123
|
+
if (!e) {
|
|
124
|
+
resolve(v)
|
|
125
|
+
return
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
reject(e)
|
|
126
129
|
})
|
|
127
130
|
|
|
128
131
|
stdout.on('data', log)
|
|
@@ -159,10 +162,13 @@ export function install (d, p, s, r, f) {
|
|
|
159
162
|
const {
|
|
160
163
|
stdout,
|
|
161
164
|
stderr
|
|
162
|
-
} = exec(commands, options, (e, v)
|
|
163
|
-
(!e)
|
|
164
|
-
|
|
165
|
-
|
|
165
|
+
} = exec(commands, options, function handleComplete (e, v) {
|
|
166
|
+
if (!e) {
|
|
167
|
+
resolve(v)
|
|
168
|
+
return
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
reject(e)
|
|
166
172
|
})
|
|
167
173
|
|
|
168
174
|
stdout.on('data', log)
|