wattpm 3.23.0 → 3.24.0

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.
@@ -40,7 +40,19 @@ export async function devCommand (logger, args) {
40
40
  }
41
41
  /* c8 ignore next 15 - covered */
42
42
 
43
- let runtime = await create(root, configurationFile, { start: true, envFile: env })
43
+ let runtime
44
+ try {
45
+ runtime = await create(root, configurationFile, { start: true, envFile: env })
46
+ } catch (err) {
47
+ if (err.cause?.code === 'PLT_RUNTIME_MISSING_ENTRYPOINT') {
48
+ return logFatalError(
49
+ logger,
50
+ 'Cannot determine the application entrypoint. Please define it via the "entrypoint" key in your configuration file.'
51
+ )
52
+ }
53
+
54
+ throw err
55
+ }
44
56
 
45
57
  // Handle reloading via either file changes or stdin "rs" command
46
58
  const { promise, reject } = Promise.withResolvers()
@@ -101,7 +113,18 @@ export async function startCommand (logger, args) {
101
113
  return
102
114
  }
103
115
 
104
- await create(root, configurationFile, { start: true, production: true, inspect, envFile: env })
116
+ try {
117
+ return await create(root, configurationFile, { start: true, production: true, inspect, envFile: env })
118
+ } catch (err) {
119
+ if (err.cause?.code === 'PLT_RUNTIME_MISSING_ENTRYPOINT') {
120
+ return logFatalError(
121
+ logger,
122
+ 'Cannot determine the application entrypoint. Please define it via the "entrypoint" key in your configuration file.'
123
+ )
124
+ }
125
+
126
+ throw err
127
+ }
105
128
  }
106
129
 
107
130
  export async function stopCommand (logger, args) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wattpm",
3
- "version": "3.23.0",
3
+ "version": "3.24.0",
4
4
  "description": "The Node.js Application Server",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -29,9 +29,9 @@
29
29
  "pino-pretty": "^13.0.0",
30
30
  "split2": "^4.2.0",
31
31
  "table": "^6.8.2",
32
- "@platformatic/control": "3.23.0",
33
- "@platformatic/runtime": "3.23.0",
34
- "@platformatic/foundation": "3.23.0"
32
+ "@platformatic/control": "3.24.0",
33
+ "@platformatic/foundation": "3.24.0",
34
+ "@platformatic/runtime": "3.24.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "cleaner-spec-reporter": "^0.5.0",
@@ -42,7 +42,7 @@
42
42
  "neostandard": "^0.12.0",
43
43
  "typescript": "^5.5.4",
44
44
  "undici": "^7.0.0",
45
- "@platformatic/node": "3.23.0"
45
+ "@platformatic/node": "3.24.0"
46
46
  },
47
47
  "engines": {
48
48
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/wattpm/3.23.0.json",
2
+ "$id": "https://schemas.platformatic.dev/wattpm/3.24.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Runtime Config",
5
5
  "type": "object",