@uscreen.de/dev-service 0.11.3 → 0.11.7

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/cli-check.js CHANGED
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import cli from 'commander'
3
+ import { program } from 'commander'
4
4
 
5
5
  import { version } from '../src/constants.js'
6
6
  import { checkUsedPorts, checkOtherServices } from '../src/check.js'
7
7
  import { error } from '../src/utils.js'
8
8
 
9
- cli
9
+ program
10
10
  .version(version)
11
11
  .arguments('[service]')
12
12
  .action(async (service) => {
@@ -23,4 +23,4 @@ cli
23
23
  }
24
24
  })
25
25
 
26
- cli.parse(process.argv)
26
+ program.parse(process.argv)
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import cli from 'commander'
3
+ import { program } from 'commander'
4
4
 
5
5
  import { version } from '../src/constants.js'
6
6
  import { error } from '../src/utils.js'
7
7
  import { install } from '../src/install.js'
8
8
 
9
- cli
9
+ program
10
10
  .version(version)
11
11
  .option(
12
12
  '--enable-classic-volumes',
@@ -22,4 +22,4 @@ cli
22
22
  }
23
23
  })
24
24
 
25
- cli.parse(process.argv)
25
+ program.parse(process.argv)
package/bin/cli-list.js CHANGED
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import cli from 'commander'
3
+ import { program } from 'commander'
4
4
 
5
5
  import { version } from '../src/constants.js'
6
6
 
7
7
  import { compose, error } from '../src/utils.js'
8
8
 
9
- cli.version(version).action(async () => {
9
+ program.version(version).action(async () => {
10
10
  try {
11
11
  await compose('ps')
12
12
  } catch (e) {
@@ -14,4 +14,4 @@ cli.version(version).action(async () => {
14
14
  }
15
15
  })
16
16
 
17
- cli.parse(process.argv)
17
+ program.parse(process.argv)
package/bin/cli-logs.js CHANGED
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import cli from 'commander'
3
+ import { program } from 'commander'
4
4
 
5
5
  import { version } from '../src/constants.js'
6
6
 
7
7
  import { compose, error } from '../src/utils.js'
8
8
 
9
- cli
9
+ program
10
10
  .version(version)
11
11
  .arguments('[service]')
12
12
  .action(async (service) => {
@@ -21,4 +21,4 @@ cli
21
21
  }
22
22
  })
23
23
 
24
- cli.parse(process.argv)
24
+ program.parse(process.argv)
package/bin/cli-pull.js CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import cli from 'commander'
3
+ import { program } from 'commander'
4
4
 
5
5
  import { version } from '../src/constants.js'
6
6
  import { compose, error } from '../src/utils.js'
7
7
 
8
- cli
8
+ program
9
9
  .version(version)
10
10
  .arguments('[service]')
11
11
  .action(async (service) => {
@@ -20,4 +20,4 @@ cli
20
20
  }
21
21
  })
22
22
 
23
- cli.parse(process.argv)
23
+ program.parse(process.argv)
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import cli from 'commander'
3
+ import { program } from 'commander'
4
4
 
5
5
  import { version } from '../src/constants.js'
6
6
 
7
7
  import { compose, error } from '../src/utils.js'
8
8
 
9
- cli
9
+ program
10
10
  .version(version)
11
11
  .arguments('[service]')
12
12
  .action(async (service) => {
@@ -21,4 +21,4 @@ cli
21
21
  }
22
22
  })
23
23
 
24
- cli.parse(process.argv)
24
+ program.parse(process.argv)
package/bin/cli-start.js CHANGED
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import cli from 'commander'
3
+ import { program } from 'commander'
4
4
 
5
5
  import { version } from '../src/constants.js'
6
6
  import { checkUsedPorts, checkOtherServices } from '../src/check.js'
7
7
  import { compose, error } from '../src/utils.js'
8
8
 
9
- cli
9
+ program
10
10
  .version(version)
11
11
  .arguments('[service]')
12
12
  .action(async (service) => {
@@ -25,4 +25,4 @@ cli
25
25
  }
26
26
  })
27
27
 
28
- cli.parse(process.argv)
28
+ program.parse(process.argv)
package/bin/cli-stop.js CHANGED
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import cli from 'commander'
3
+ import { program } from 'commander'
4
4
 
5
5
  import { version } from '../src/constants.js'
6
6
 
7
7
  import { compose, error } from '../src/utils.js'
8
8
 
9
- cli
9
+ program
10
10
  .version(version)
11
11
  .arguments('[service]')
12
12
  .action(async (service) => {
@@ -25,4 +25,4 @@ cli
25
25
  }
26
26
  })
27
27
 
28
- cli.parse(process.argv)
28
+ program.parse(process.argv)
package/bin/cli.js CHANGED
@@ -4,7 +4,7 @@ import { Command } from 'commander'
4
4
  import { createRequire } from 'module'
5
5
 
6
6
  const require = createRequire(import.meta.url)
7
- const cli = new Command()
7
+ const program = new Command()
8
8
 
9
9
  /**
10
10
  * package.json content
@@ -14,7 +14,7 @@ const { version } = require('../package.json')
14
14
  /**
15
15
  * define the command
16
16
  */
17
- cli
17
+ program
18
18
  .version(version)
19
19
  .command('install', 'install all services specified in package.json')
20
20
  .command('check [service]', 'check availabilty of all or given service ports')
@@ -31,4 +31,4 @@ cli
31
31
  /**
32
32
  * read args
33
33
  */
34
- cli.parse(process.argv)
34
+ program.parse(process.argv)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uscreen.de/dev-service",
3
- "version": "0.11.3",
3
+ "version": "0.11.7",
4
4
  "description": "cli to manage services in dev repos",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -40,18 +40,18 @@
40
40
  "templates"
41
41
  ],
42
42
  "devDependencies": {
43
- "@uscreen.de/eslint-config-prettystandard-node": "^0.2.1",
43
+ "@uscreen.de/eslint-config-prettystandard-node": "^0.2.2",
44
44
  "husky": ">=6",
45
- "lint-staged": ">=12.1.7",
45
+ "lint-staged": ">=12.3.4",
46
46
  "tap": "^15.1.6"
47
47
  },
48
48
  "dependencies": {
49
49
  "c8": "^7.11.0",
50
- "commander": "^8.1.0",
50
+ "commander": "^9.0.0",
51
51
  "fs-extra": "^10.0.0",
52
- "nanoid": "^3.1.23",
52
+ "nanoid": "^3.1.31",
53
53
  "parse-json": "^6.0.2",
54
- "read-pkg": "^7.0.0",
54
+ "read-pkg": "^7.1.0",
55
55
  "yaml": "^1.10.2"
56
56
  },
57
57
  "lint-staged": {