@modernpoacher/deps 2.2.26 → 2.2.28

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.
@@ -46,9 +46,7 @@ import debug from '#deps/src/common/debug'
46
46
  import {
47
47
  VERSION,
48
48
  PLATFORM,
49
- BIN,
50
- OUT,
51
- ERR
49
+ BIN
52
50
  } from '#deps/src/common/env'
53
51
 
54
52
  import {
@@ -504,8 +502,6 @@ export {
504
502
  REGISTRY,
505
503
  AUTHOR,
506
504
  NVM,
507
- OUT,
508
- ERR,
509
505
  handlePackageError,
510
506
  handleConfigurationError,
511
507
  getPackageJsonPath,
package/bin/node/deps.mjs CHANGED
@@ -1,27 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import {
4
- stdout,
5
- stderr
6
- } from 'node:process'
7
-
8
- import {
9
- createWriteStream
10
- } from 'node:fs'
11
-
12
3
  import {
13
4
  exec
14
5
  } from 'node:child_process'
15
6
 
16
- import write from '@sequencemedia/write'
7
+ import '#deps/src/common/write'
17
8
 
18
9
  import '#deps/src/common/debug'
19
10
 
20
- import {
21
- OUT,
22
- ERR
23
- } from '#deps/src/common/env'
24
-
25
11
  import {
26
12
  getOptions
27
13
  } from '#deps/src/common/options'
@@ -33,15 +19,10 @@ import {
33
19
  handleComplete
34
20
  } from '#deps/bin/common'
35
21
 
36
- if (OUT) stdout.write = write(stdout, createWriteStream(OUT))
37
- if (ERR) stderr.write = write(stderr, createWriteStream(ERR))
38
-
39
- {
40
- const {
41
- stdout,
42
- stderr
43
- } = exec(`${DEPS} ${ARGS}`, getOptions(), handleComplete)
22
+ const {
23
+ stdout,
24
+ stderr
25
+ } = exec(`${DEPS} ${ARGS}`, getOptions(), handleComplete)
44
26
 
45
- if (stdout) stdout.on('data', use('deps-deps'))
46
- if (stderr) stderr.on('data', use('deps-deps:error'))
47
- }
27
+ if (stdout) stdout.on('data', use('deps-deps'))
28
+ if (stderr) stderr.on('data', use('deps-deps:error'))
@@ -1,14 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import {
4
- stdout,
5
- stderr
6
- } from 'node:process'
7
-
8
- import {
9
- createWriteStream
10
- } from 'node:fs'
11
-
12
3
  import {
13
4
  resolve,
14
5
  dirname
@@ -22,15 +13,13 @@ import {
22
13
  Command
23
14
  } from 'commander'
24
15
 
25
- import write from '@sequencemedia/write'
16
+ import '#deps/src/common/write'
26
17
 
27
18
  import debug from '#deps/src/common/debug'
28
19
 
29
20
  import {
30
21
  VERSION,
31
- PLATFORM,
32
- OUT,
33
- ERR
22
+ PLATFORM
34
23
  } from '#deps/src/common/env'
35
24
 
36
25
  import {
@@ -522,9 +511,6 @@ async function executePath (directory, registry, force, message, author) {
522
511
  }
523
512
  }
524
513
 
525
- if (OUT) stdout.write = write(stdout, createWriteStream(OUT))
526
- if (ERR) stderr.write = write(stderr, createWriteStream(ERR))
527
-
528
514
  /**
529
515
  * @function app
530
516
  */
package/bin/node/head.mjs CHANGED
@@ -1,27 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import {
4
- stdout,
5
- stderr
6
- } from 'node:process'
7
-
8
- import {
9
- createWriteStream
10
- } from 'node:fs'
11
-
12
3
  import {
13
4
  exec
14
5
  } from 'node:child_process'
15
6
 
16
- import write from '@sequencemedia/write'
7
+ import '#deps/src/common/write'
17
8
 
18
9
  import '#deps/src/common/debug'
19
10
 
20
- import {
21
- OUT,
22
- ERR
23
- } from '#deps/src/common/env'
24
-
25
11
  import {
26
12
  getOptions
27
13
  } from '#deps/src/common/options'
@@ -33,15 +19,10 @@ import {
33
19
  handleComplete
34
20
  } from '#deps/bin/common'
35
21
 
36
- if (OUT) stdout.write = write(stdout, createWriteStream(OUT))
37
- if (ERR) stderr.write = write(stderr, createWriteStream(ERR))
38
-
39
- {
40
- const {
41
- stdout,
42
- stderr
43
- } = exec(`${HEAD} ${ARGS}`, getOptions(), handleComplete)
22
+ const {
23
+ stdout,
24
+ stderr
25
+ } = exec(`${HEAD} ${ARGS}`, getOptions(), handleComplete)
44
26
 
45
- if (stdout) stdout.on('data', use('deps-head'))
46
- if (stderr) stderr.on('data', use('deps-head:error'))
47
- }
27
+ if (stdout) stdout.on('data', use('deps-head'))
28
+ if (stderr) stderr.on('data', use('deps-head:error'))
@@ -1,27 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import {
4
- stdout,
5
- stderr
6
- } from 'node:process'
7
-
8
- import {
9
- createWriteStream
10
- } from 'node:fs'
11
-
12
3
  import {
13
4
  Command
14
5
  } from 'commander'
15
6
 
16
- import write from '@sequencemedia/write'
7
+ import '#deps/src/common/write'
17
8
 
18
9
  import debug from '#deps/src/common/debug'
19
10
 
20
11
  import {
21
12
  VERSION,
22
- PLATFORM,
23
- OUT,
24
- ERR
13
+ PLATFORM
14
+
25
15
  } from '#deps/src/common/env'
26
16
 
27
17
  import {
@@ -48,9 +38,6 @@ const log = debug('@modernpoacher/deps')
48
38
 
49
39
  log(`\`install\` (${VERSION} - ${PLATFORM}) is awake`)
50
40
 
51
- if (OUT) stdout.write = write(stdout, createWriteStream(OUT))
52
- if (ERR) stderr.write = write(stderr, createWriteStream(ERR))
53
-
54
41
  /**
55
42
  * @function app
56
43
  */
package/bin/node/push.mjs CHANGED
@@ -1,27 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import {
4
- stdout,
5
- stderr
6
- } from 'node:process'
7
-
8
- import {
9
- createWriteStream
10
- } from 'node:fs'
11
-
12
3
  import {
13
4
  exec
14
5
  } from 'node:child_process'
15
6
 
16
- import write from '@sequencemedia/write'
7
+ import '#deps/src/common/write'
17
8
 
18
9
  import '#deps/src/common/debug'
19
10
 
20
- import {
21
- OUT,
22
- ERR
23
- } from '#deps/src/common/env'
24
-
25
11
  import {
26
12
  getOptions
27
13
  } from '#deps/src/common/options'
@@ -33,15 +19,10 @@ import {
33
19
  handleComplete
34
20
  } from '#deps/bin/common'
35
21
 
36
- if (OUT) stdout.write = write(stdout, createWriteStream(OUT))
37
- if (ERR) stderr.write = write(stderr, createWriteStream(ERR))
38
-
39
- {
40
- const {
41
- stdout,
42
- stderr
43
- } = exec(`${PUSH} ${ARGS}`, getOptions(), handleComplete)
22
+ const {
23
+ stdout,
24
+ stderr
25
+ } = exec(`${PUSH} ${ARGS}`, getOptions(), handleComplete)
44
26
 
45
- if (stdout) stdout.on('data', use('deps-push'))
46
- if (stderr) stderr.on('data', use('deps-push:error'))
47
- }
27
+ if (stdout) stdout.on('data', use('deps-push'))
28
+ if (stderr) stderr.on('data', use('deps-push:error'))
package/bin/node/wipe.mjs CHANGED
@@ -1,27 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import {
4
- stdout,
5
- stderr
6
- } from 'node:process'
7
-
8
- import {
9
- createWriteStream
10
- } from 'node:fs'
11
-
12
3
  import {
13
4
  exec
14
5
  } from 'node:child_process'
15
6
 
16
- import write from '@sequencemedia/write'
7
+ import '#deps/src/common/write'
17
8
 
18
9
  import '#deps/src/common/debug'
19
10
 
20
- import {
21
- OUT,
22
- ERR
23
- } from '#deps/src/common/env'
24
-
25
11
  import {
26
12
  getOptions
27
13
  } from '#deps/src/common/options'
@@ -33,15 +19,10 @@ import {
33
19
  handleComplete
34
20
  } from '#deps/bin/common'
35
21
 
36
- if (OUT) stdout.write = write(stdout, createWriteStream(OUT))
37
- if (ERR) stderr.write = write(stderr, createWriteStream(ERR))
38
-
39
- {
40
- const {
41
- stdout,
42
- stderr
43
- } = exec(`${WIPE} ${ARGS}`, getOptions(), handleComplete)
22
+ const {
23
+ stdout,
24
+ stderr
25
+ } = exec(`${WIPE} ${ARGS}`, getOptions(), handleComplete)
44
26
 
45
- if (stdout) stdout.on('data', use('deps-wipe'))
46
- if (stderr) stderr.on('data', use('deps-wipe:error'))
47
- }
27
+ if (stdout) stdout.on('data', use('deps-wipe'))
28
+ if (stderr) stderr.on('data', use('deps-wipe:error'))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modernpoacher/deps",
3
- "version": "2.2.26",
3
+ "version": "2.2.28",
4
4
  "description": "Update NPM package dependencies from the command line",
5
5
  "keywords": [
6
6
  "deps",
@@ -23,9 +23,7 @@ const PLATFORM = platform()
23
23
 
24
24
  const {
25
25
  env: {
26
- HOME,
27
- OUT,
28
- ERR
26
+ HOME
29
27
  }
30
28
  } = process
31
29
 
@@ -42,7 +40,5 @@ export {
42
40
  VERSION,
43
41
  PLATFORM,
44
42
  HOME,
45
- BIN,
46
- OUT,
47
- ERR
43
+ BIN
48
44
  }
@@ -0,0 +1,20 @@
1
+ import {
2
+ stdout,
3
+ stderr
4
+ } from 'node:process'
5
+
6
+ import {
7
+ createWriteStream
8
+ } from 'node:fs'
9
+
10
+ import write from '@sequencemedia/write'
11
+
12
+ const {
13
+ env: {
14
+ STDOUT,
15
+ STDERR
16
+ }
17
+ } = process
18
+
19
+ if (STDOUT) stdout.write = write(stdout, createWriteStream(STDOUT))
20
+ if (STDERR) stderr.write = write(stderr, createWriteStream(STDERR))