@modernpoacher/deps 2.1.33 → 2.1.35
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 +6 -21
- package/package.json +11 -11
- package/src/common/options/index.mjs +4 -0
- package/src/index.mjs +16 -56
- package/src/install/index.mjs +4 -14
package/bin/common/index.mjs
CHANGED
|
@@ -269,13 +269,8 @@ function rmrf (d = DIRECTORY) {
|
|
|
269
269
|
const {
|
|
270
270
|
stdout,
|
|
271
271
|
stderr
|
|
272
|
-
} = exec(commands, options,
|
|
273
|
-
|
|
274
|
-
resolve(v)
|
|
275
|
-
return
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
reject(e)
|
|
272
|
+
} = exec(commands, options, (e, v) => {
|
|
273
|
+
return (!e) ? resolve(v) : reject(e)
|
|
279
274
|
})
|
|
280
275
|
|
|
281
276
|
const log = use('rmrf')
|
|
@@ -299,13 +294,8 @@ function npmi (d = DIRECTORY, registry = REGISTRY, force = false) {
|
|
|
299
294
|
const {
|
|
300
295
|
stdout,
|
|
301
296
|
stderr
|
|
302
|
-
} = exec(commands, options,
|
|
303
|
-
|
|
304
|
-
resolve(v)
|
|
305
|
-
return
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
reject(e)
|
|
297
|
+
} = exec(commands, options, (e, v) => {
|
|
298
|
+
return (!e) ? resolve(v) : reject(e)
|
|
309
299
|
})
|
|
310
300
|
|
|
311
301
|
const log = use('npmi')
|
|
@@ -329,13 +319,8 @@ function deps (d = DIRECTORY, registry = REGISTRY, force = false) {
|
|
|
329
319
|
const {
|
|
330
320
|
stdout,
|
|
331
321
|
stderr
|
|
332
|
-
} = exec(commands, options,
|
|
333
|
-
|
|
334
|
-
resolve(v)
|
|
335
|
-
return
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
reject(e)
|
|
322
|
+
} = exec(commands, options, (e, v) => {
|
|
323
|
+
return (!e) ? resolve(v) : reject(e)
|
|
339
324
|
})
|
|
340
325
|
|
|
341
326
|
const log = use('deps')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modernpoacher/deps",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.35",
|
|
4
4
|
"description": "Update NPM package dependencies from the command line",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deps",
|
|
@@ -23,25 +23,25 @@
|
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
26
|
-
"url": "git://github.com/modernpoacher/deps"
|
|
26
|
+
"url": "git://github.com/modernpoacher/deps.git"
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/modernpoacher/deps",
|
|
29
29
|
"bugs": {
|
|
30
30
|
"url": "https://github.com/modernpoacher/deps/issues"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
|
-
"deps": "cross-env DEBUG_COLORS=yes NODE_ENV=production node bin/deps.mjs",
|
|
34
|
-
"deps-deps": "cross-env DEBUG_COLORS=yes NODE_ENV=production node bin/deps/deps.mjs",
|
|
35
|
-
"deps-execute": "cross-env DEBUG_COLORS=yes NODE_ENV=production node bin/deps/execute.mjs",
|
|
36
|
-
"deps-head": "cross-env DEBUG_COLORS=yes NODE_ENV=production node bin/deps/head.mjs",
|
|
37
|
-
"deps-install": "cross-env DEBUG_COLORS=yes NODE_ENV=production node bin/deps/install.mjs",
|
|
38
|
-
"deps-push": "cross-env DEBUG_COLORS=yes NODE_ENV=production node bin/deps/push.mjs",
|
|
39
|
-
"deps-wipe": "cross-env DEBUG_COLORS=yes NODE_ENV=production node bin/deps/wipe.mjs",
|
|
40
|
-
"lint": "eslint . --ext .mjs,.cjs",
|
|
33
|
+
"deps": "cross-env NODE_OPTIONS=--disable-warning=ExperimentalWarning DEBUG_COLORS=yes NODE_ENV=production node bin/deps.mjs",
|
|
34
|
+
"deps-deps": "cross-env NODE_OPTIONS=--disable-warning=ExperimentalWarning DEBUG_COLORS=yes NODE_ENV=production node bin/deps/deps.mjs",
|
|
35
|
+
"deps-execute": "cross-env NODE_OPTIONS=--disable-warning=ExperimentalWarning DEBUG_COLORS=yes NODE_ENV=production node bin/deps/execute.mjs",
|
|
36
|
+
"deps-head": "cross-env NODE_OPTIONS=--disable-warning=ExperimentalWarning DEBUG_COLORS=yes NODE_ENV=production node bin/deps/head.mjs",
|
|
37
|
+
"deps-install": "cross-env NODE_OPTIONS=--disable-warning=ExperimentalWarning DEBUG_COLORS=yes NODE_ENV=production node bin/deps/install.mjs",
|
|
38
|
+
"deps-push": "cross-env NODE_OPTIONS=--disable-warning=ExperimentalWarning DEBUG_COLORS=yes NODE_ENV=production node bin/deps/push.mjs",
|
|
39
|
+
"deps-wipe": "cross-env NODE_OPTIONS=--disable-warning=ExperimentalWarning DEBUG_COLORS=yes NODE_ENV=production node bin/deps/wipe.mjs",
|
|
40
|
+
"lint": "cross-env NODE_OPTIONS=--disable-warning=ExperimentalWarning eslint . --ext .mjs,.cjs",
|
|
41
41
|
"lint:fix": "npm run lint -- --fix",
|
|
42
42
|
"prepare": "husky",
|
|
43
43
|
"start": "npm run deps",
|
|
44
|
-
"test": "cross-env DEBUG_COLORS=yes NODE_ENV=test mocha test --recursive --verbose --color"
|
|
44
|
+
"test": "cross-env NODE_OPTIONS=--disable-warning=ExperimentalWarning DEBUG_COLORS=yes NODE_ENV=test mocha test --recursive --verbose --color"
|
|
45
45
|
},
|
|
46
46
|
"bin": {
|
|
47
47
|
"deps": "bin/deps.mjs",
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
|
|
8
8
|
const {
|
|
9
9
|
env: {
|
|
10
|
+
NODE_OPTIONS = '--disable-warning=ExperimentalWarning',
|
|
10
11
|
SSH_AUTH_SOCK,
|
|
11
12
|
HOME,
|
|
12
13
|
PATH
|
|
@@ -21,6 +22,7 @@ export const OPTIONS = {
|
|
|
21
22
|
FORCE_COLOR: PLATFORM === 'win32'
|
|
22
23
|
? 3
|
|
23
24
|
: 2,
|
|
25
|
+
NODE_OPTIONS,
|
|
24
26
|
SSH_AUTH_SOCK,
|
|
25
27
|
HOME,
|
|
26
28
|
PATH
|
|
@@ -50,6 +52,8 @@ log(`\`common/options\` (${VERSION} - ${PLATFORM}) is awake`)
|
|
|
50
52
|
* }}
|
|
51
53
|
*/
|
|
52
54
|
export function getOptions (cwd) {
|
|
55
|
+
log('getOptions')
|
|
56
|
+
|
|
53
57
|
return {
|
|
54
58
|
...OPTIONS,
|
|
55
59
|
cwd
|
package/src/index.mjs
CHANGED
|
@@ -312,13 +312,8 @@ export function installSaveBundleSaveExact (d, deps, r, f) {
|
|
|
312
312
|
const {
|
|
313
313
|
stdout,
|
|
314
314
|
stderr
|
|
315
|
-
} = exec(commands, options,
|
|
316
|
-
|
|
317
|
-
resolve(v)
|
|
318
|
-
return
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
reject(e)
|
|
315
|
+
} = exec(commands, options, (e, v) => {
|
|
316
|
+
return (!e) ? resolve(v) : reject(e)
|
|
322
317
|
})
|
|
323
318
|
|
|
324
319
|
const log = use('install-save-bundle-save-exact')
|
|
@@ -356,13 +351,8 @@ export function installSaveBundle (d, deps, r, f) {
|
|
|
356
351
|
const {
|
|
357
352
|
stdout,
|
|
358
353
|
stderr
|
|
359
|
-
} = exec(commands, options,
|
|
360
|
-
|
|
361
|
-
resolve(v)
|
|
362
|
-
return
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
reject(e)
|
|
354
|
+
} = exec(commands, options, (e, v) => {
|
|
355
|
+
return (!e) ? resolve(v) : reject(e)
|
|
366
356
|
})
|
|
367
357
|
|
|
368
358
|
const log = use('install-save-bundle')
|
|
@@ -400,13 +390,8 @@ export function installSaveOptionalSaveExact (d, deps, r, f) {
|
|
|
400
390
|
const {
|
|
401
391
|
stdout,
|
|
402
392
|
stderr
|
|
403
|
-
} = exec(commands, options,
|
|
404
|
-
|
|
405
|
-
resolve(v)
|
|
406
|
-
return
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
reject(e)
|
|
393
|
+
} = exec(commands, options, (e, v) => {
|
|
394
|
+
return (!e) ? resolve(v) : reject(e)
|
|
410
395
|
})
|
|
411
396
|
|
|
412
397
|
const log = use('install-save-otional-save-exact')
|
|
@@ -444,13 +429,8 @@ export function installSaveOptional (d, dependencies, r, f) {
|
|
|
444
429
|
const {
|
|
445
430
|
stdout,
|
|
446
431
|
stderr
|
|
447
|
-
} = exec(commands, options,
|
|
448
|
-
|
|
449
|
-
resolve(v)
|
|
450
|
-
return
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
reject(e)
|
|
432
|
+
} = exec(commands, options, (e, v) => {
|
|
433
|
+
return (!e) ? resolve(v) : reject(e)
|
|
454
434
|
})
|
|
455
435
|
|
|
456
436
|
const log = use('install-save-otional')
|
|
@@ -488,13 +468,8 @@ export function installSaveDevSaveExact (d, deps, r, f) {
|
|
|
488
468
|
const {
|
|
489
469
|
stdout,
|
|
490
470
|
stderr
|
|
491
|
-
} = exec(commands, options,
|
|
492
|
-
|
|
493
|
-
resolve(v)
|
|
494
|
-
return
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
reject(e)
|
|
471
|
+
} = exec(commands, options, (e, v) => {
|
|
472
|
+
return (!e) ? resolve(v) : reject(e)
|
|
498
473
|
})
|
|
499
474
|
|
|
500
475
|
const log = use('install-save-dev-save-exact')
|
|
@@ -532,13 +507,8 @@ export function installSaveDev (d, deps, r, f) {
|
|
|
532
507
|
const {
|
|
533
508
|
stdout,
|
|
534
509
|
stderr
|
|
535
|
-
} = exec(commands, options,
|
|
536
|
-
|
|
537
|
-
resolve(v)
|
|
538
|
-
return
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
reject(e)
|
|
510
|
+
} = exec(commands, options, (e, v) => {
|
|
511
|
+
return (!e) ? resolve(v) : reject(e)
|
|
542
512
|
})
|
|
543
513
|
|
|
544
514
|
const log = use('install-save-dev')
|
|
@@ -576,13 +546,8 @@ export function installSaveProdSaveExact (d, deps, r, f) {
|
|
|
576
546
|
const {
|
|
577
547
|
stdout,
|
|
578
548
|
stderr
|
|
579
|
-
} = exec(commands, options,
|
|
580
|
-
|
|
581
|
-
resolve(v)
|
|
582
|
-
return
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
reject(e)
|
|
549
|
+
} = exec(commands, options, (e, v) => {
|
|
550
|
+
return (!e) ? resolve(v) : reject(e)
|
|
586
551
|
})
|
|
587
552
|
|
|
588
553
|
const log = use('install-save-prod-save-exact')
|
|
@@ -620,13 +585,8 @@ export function installSaveProd (d, deps, r, f) {
|
|
|
620
585
|
const {
|
|
621
586
|
stdout,
|
|
622
587
|
stderr
|
|
623
|
-
} = exec(commands, options,
|
|
624
|
-
|
|
625
|
-
resolve(v)
|
|
626
|
-
return
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
reject(e)
|
|
588
|
+
} = exec(commands, options, (e, v) => {
|
|
589
|
+
return (!e) ? resolve(v) : reject(e)
|
|
630
590
|
})
|
|
631
591
|
|
|
632
592
|
const log = use('install-save-prod')
|
package/src/install/index.mjs
CHANGED
|
@@ -119,13 +119,8 @@ export function installSaveExact (d, p, s, r, f) {
|
|
|
119
119
|
const {
|
|
120
120
|
stdout,
|
|
121
121
|
stderr
|
|
122
|
-
} = exec(commands, options,
|
|
123
|
-
|
|
124
|
-
resolve(v)
|
|
125
|
-
return
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
reject(e)
|
|
122
|
+
} = exec(commands, options, (e, v) => {
|
|
123
|
+
return (!e) ? resolve(v) : reject(e)
|
|
129
124
|
})
|
|
130
125
|
|
|
131
126
|
stdout.on('data', log)
|
|
@@ -162,13 +157,8 @@ export function install (d, p, s, r, f) {
|
|
|
162
157
|
const {
|
|
163
158
|
stdout,
|
|
164
159
|
stderr
|
|
165
|
-
} = exec(commands, options,
|
|
166
|
-
|
|
167
|
-
resolve(v)
|
|
168
|
-
return
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
reject(e)
|
|
160
|
+
} = exec(commands, options, (e, v) => {
|
|
161
|
+
return (!e) ? resolve(v) : reject(e)
|
|
172
162
|
})
|
|
173
163
|
|
|
174
164
|
stdout.on('data', log)
|