wattpm 2.5.5-alpha.2 → 2.5.5-alpha.3

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.
@@ -27,12 +27,21 @@ export async function devCommand (logger, args) {
27
27
  }
28
28
 
29
29
  export async function startCommand (logger, args) {
30
- const { positionals } = parseArgs(args, {}, false)
30
+ const { positionals, values } = parseArgs(args, {
31
+ inspect: {
32
+ type: 'boolean',
33
+ short: 'i',
34
+ }
35
+ }, false)
31
36
  /* c8 ignore next */
32
37
  const root = resolve(process.cwd(), positionals[0] ?? '')
33
38
 
34
39
  const configurationFile = await findConfigurationFile(logger, root)
35
- await pltStartCommand(['--production', '-c', configurationFile], true)
40
+ const cmd = ['--production', '-c', configurationFile]
41
+ if (values.inspect) {
42
+ cmd.push('--inspect')
43
+ }
44
+ await pltStartCommand(cmd, true)
36
45
  }
37
46
 
38
47
  export async function stopCommand (logger, args) {
@@ -130,7 +139,11 @@ export const help = {
130
139
  name: 'root',
131
140
  description: 'The directory containing the application (the default is the current directory)'
132
141
  }
133
- ]
142
+ ],
143
+ options: [{
144
+ usage: '-i --inspect',
145
+ description: 'Enables the inspector for each service'
146
+ }]
134
147
  },
135
148
  stop: {
136
149
  usage: 'stop [id]',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wattpm",
3
- "version": "2.5.5-alpha.2",
3
+ "version": "2.5.5-alpha.3",
4
4
  "description": "The Node.js Application Server",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -34,15 +34,16 @@
34
34
  "pino-pretty": "^11.2.2",
35
35
  "split2": "^4.2.0",
36
36
  "table": "^6.8.2",
37
- "@platformatic/basic": "2.5.5-alpha.2",
38
- "@platformatic/config": "2.5.5-alpha.2",
39
- "@platformatic/control": "2.5.5-alpha.2",
40
- "@platformatic/runtime": "2.5.5-alpha.2",
41
- "@platformatic/utils": "2.5.5-alpha.2"
37
+ "@platformatic/basic": "2.5.5-alpha.3",
38
+ "@platformatic/config": "2.5.5-alpha.3",
39
+ "@platformatic/control": "2.5.5-alpha.3",
40
+ "@platformatic/runtime": "2.5.5-alpha.3",
41
+ "@platformatic/utils": "2.5.5-alpha.3"
42
42
  },
43
43
  "devDependencies": {
44
44
  "borp": "^0.17.0",
45
45
  "eslint": "9",
46
+ "inspector-client": "^0.1.2",
46
47
  "json-schema-to-typescript": "^15.0.0",
47
48
  "neostandard": "^0.11.1",
48
49
  "typescript": "^5.5.4",
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/wattpm/2.5.5-alpha.2.json",
2
+ "$id": "https://schemas.platformatic.dev/wattpm/2.5.5-alpha.3.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "type": "object",
5
5
  "properties": {