@modernpoacher/deps 2.1.30 → 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 +79 -32
- 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
|
@@ -47,6 +47,7 @@ import {
|
|
|
47
47
|
} from '#deps/src/common'
|
|
48
48
|
|
|
49
49
|
const log = debug('@modernpoacher/deps')
|
|
50
|
+
const info = debug('@modernpoacher/deps:info')
|
|
50
51
|
|
|
51
52
|
log(`\`deps\` (${VERSION} - ${PLATFORM}) is awake`)
|
|
52
53
|
|
|
@@ -85,6 +86,8 @@ export function getInstallSaveExactCommands (deps, r, f) {
|
|
|
85
86
|
const c = transform(deps)
|
|
86
87
|
const commands = `npm i ${c}`
|
|
87
88
|
|
|
89
|
+
info(commands)
|
|
90
|
+
|
|
88
91
|
return normalizeCommands(
|
|
89
92
|
getRegistryParameter(r, getForceParameter(f, getSaveExactParameter(commands)))
|
|
90
93
|
)
|
|
@@ -107,6 +110,8 @@ export function getInstallCommands (deps, r, f) {
|
|
|
107
110
|
const c = transform(deps)
|
|
108
111
|
const commands = `npm i ${c}`
|
|
109
112
|
|
|
113
|
+
info(commands)
|
|
114
|
+
|
|
110
115
|
return normalizeCommands(
|
|
111
116
|
getRegistryParameter(r, getForceParameter(f, commands))
|
|
112
117
|
)
|
|
@@ -128,6 +133,8 @@ export function getInstallSaveBundleSaveExactCommands (deps, r, f) {
|
|
|
128
133
|
|
|
129
134
|
const commands = getInstallSaveExactCommands(deps, r, f)
|
|
130
135
|
|
|
136
|
+
info(commands)
|
|
137
|
+
|
|
131
138
|
return normalizeCommands(
|
|
132
139
|
getSaveBundleParameter(commands)
|
|
133
140
|
)
|
|
@@ -304,13 +311,18 @@ export function installSaveBundleSaveExact (d, deps, r, f) {
|
|
|
304
311
|
const commands = getCommands(getInstallSaveBundleSaveExactCommands(deps, r, f))
|
|
305
312
|
const options = getOptions(directory)
|
|
306
313
|
|
|
314
|
+
info(commands) // , options)
|
|
315
|
+
|
|
307
316
|
const {
|
|
308
317
|
stdout,
|
|
309
318
|
stderr
|
|
310
|
-
} = exec(commands, options, (e, v)
|
|
311
|
-
(!e)
|
|
312
|
-
|
|
313
|
-
|
|
319
|
+
} = exec(commands, options, function handleComplete (e, v) {
|
|
320
|
+
if (!e) {
|
|
321
|
+
resolve(v)
|
|
322
|
+
return
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
reject(e)
|
|
314
326
|
})
|
|
315
327
|
|
|
316
328
|
const log = use('install-save-bundle-save-exact')
|
|
@@ -345,13 +357,18 @@ export function installSaveBundle (d, deps, r, f) {
|
|
|
345
357
|
const commands = getCommands(getInstallSaveBundleCommands(deps, r, f))
|
|
346
358
|
const options = getOptions(directory)
|
|
347
359
|
|
|
360
|
+
info(commands) // , options)
|
|
361
|
+
|
|
348
362
|
const {
|
|
349
363
|
stdout,
|
|
350
364
|
stderr
|
|
351
|
-
} = exec(commands, options, (e, v)
|
|
352
|
-
(!e)
|
|
353
|
-
|
|
354
|
-
|
|
365
|
+
} = exec(commands, options, function handleComplete (e, v) {
|
|
366
|
+
if (!e) {
|
|
367
|
+
resolve(v)
|
|
368
|
+
return
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
reject(e)
|
|
355
372
|
})
|
|
356
373
|
|
|
357
374
|
const log = use('install-save-bundle')
|
|
@@ -386,13 +403,18 @@ export function installSaveOptionalSaveExact (d, deps, r, f) {
|
|
|
386
403
|
const commands = getCommands(getInstallSaveOptionalSaveExactCommands(deps, r, f))
|
|
387
404
|
const options = getOptions(directory)
|
|
388
405
|
|
|
406
|
+
info(commands) // , options)
|
|
407
|
+
|
|
389
408
|
const {
|
|
390
409
|
stdout,
|
|
391
410
|
stderr
|
|
392
|
-
} = exec(commands, options, (e, v)
|
|
393
|
-
(!e)
|
|
394
|
-
|
|
395
|
-
|
|
411
|
+
} = exec(commands, options, function handleComplete (e, v) {
|
|
412
|
+
if (!e) {
|
|
413
|
+
resolve(v)
|
|
414
|
+
return
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
reject(e)
|
|
396
418
|
})
|
|
397
419
|
|
|
398
420
|
const log = use('install-save-otional-save-exact')
|
|
@@ -427,13 +449,18 @@ export function installSaveOptional (d, dependencies, r, f) {
|
|
|
427
449
|
const commands = getCommands(getInstallSaveOptionalCommands(dependencies, r, f))
|
|
428
450
|
const options = getOptions(directory)
|
|
429
451
|
|
|
452
|
+
info(commands) // , options)
|
|
453
|
+
|
|
430
454
|
const {
|
|
431
455
|
stdout,
|
|
432
456
|
stderr
|
|
433
|
-
} = exec(commands, options, (e, v)
|
|
434
|
-
(!e)
|
|
435
|
-
|
|
436
|
-
|
|
457
|
+
} = exec(commands, options, function handleComplete (e, v) {
|
|
458
|
+
if (!e) {
|
|
459
|
+
resolve(v)
|
|
460
|
+
return
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
reject(e)
|
|
437
464
|
})
|
|
438
465
|
|
|
439
466
|
const log = use('install-save-otional')
|
|
@@ -468,13 +495,18 @@ export function installSaveDevSaveExact (d, deps, r, f) {
|
|
|
468
495
|
const commands = getCommands(getInstallSaveDevSaveExactCommands(deps, r, f))
|
|
469
496
|
const options = getOptions(directory)
|
|
470
497
|
|
|
498
|
+
info(commands) // , options)
|
|
499
|
+
|
|
471
500
|
const {
|
|
472
501
|
stdout,
|
|
473
502
|
stderr
|
|
474
|
-
} = exec(commands, options, (e, v)
|
|
475
|
-
(!e)
|
|
476
|
-
|
|
477
|
-
|
|
503
|
+
} = exec(commands, options, function handleComplete (e, v) {
|
|
504
|
+
if (!e) {
|
|
505
|
+
resolve(v)
|
|
506
|
+
return
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
reject(e)
|
|
478
510
|
})
|
|
479
511
|
|
|
480
512
|
const log = use('install-save-dev-save-exact')
|
|
@@ -509,13 +541,18 @@ export function installSaveDev (d, deps, r, f) {
|
|
|
509
541
|
const commands = getCommands(getInstallSaveDevCommands(deps, r, f))
|
|
510
542
|
const options = getOptions(directory)
|
|
511
543
|
|
|
544
|
+
info(commands) // , options)
|
|
545
|
+
|
|
512
546
|
const {
|
|
513
547
|
stdout,
|
|
514
548
|
stderr
|
|
515
|
-
} = exec(commands, options, (e, v)
|
|
516
|
-
(!e)
|
|
517
|
-
|
|
518
|
-
|
|
549
|
+
} = exec(commands, options, function handleComplete (e, v) {
|
|
550
|
+
if (!e) {
|
|
551
|
+
resolve(v)
|
|
552
|
+
return
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
reject(e)
|
|
519
556
|
})
|
|
520
557
|
|
|
521
558
|
const log = use('install-save-dev')
|
|
@@ -550,13 +587,18 @@ export function installSaveProdSaveExact (d, deps, r, f) {
|
|
|
550
587
|
const commands = getCommands(getInstallSaveProdSaveExactCommands(deps, r, f))
|
|
551
588
|
const options = getOptions(directory)
|
|
552
589
|
|
|
590
|
+
info(commands) // , options)
|
|
591
|
+
|
|
553
592
|
const {
|
|
554
593
|
stdout,
|
|
555
594
|
stderr
|
|
556
|
-
} = exec(commands, options, (e, v)
|
|
557
|
-
(!e)
|
|
558
|
-
|
|
559
|
-
|
|
595
|
+
} = exec(commands, options, function handleComplete (e, v) {
|
|
596
|
+
if (!e) {
|
|
597
|
+
resolve(v)
|
|
598
|
+
return
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
reject(e)
|
|
560
602
|
})
|
|
561
603
|
|
|
562
604
|
const log = use('install-save-prod-save-exact')
|
|
@@ -591,13 +633,18 @@ export function installSaveProd (d, deps, r, f) {
|
|
|
591
633
|
const commands = getCommands(getInstallSaveProdCommands(deps, r, f))
|
|
592
634
|
const options = getOptions(directory)
|
|
593
635
|
|
|
636
|
+
info(commands) // , options)
|
|
637
|
+
|
|
594
638
|
const {
|
|
595
639
|
stdout,
|
|
596
640
|
stderr
|
|
597
|
-
} = exec(commands, options, (e, v)
|
|
598
|
-
(!e)
|
|
599
|
-
|
|
600
|
-
|
|
641
|
+
} = exec(commands, options, function handleComplete (e, v) {
|
|
642
|
+
if (!e) {
|
|
643
|
+
resolve(v)
|
|
644
|
+
return
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
reject(e)
|
|
601
648
|
})
|
|
602
649
|
|
|
603
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)
|