@platformatic/node 2.73.1 → 2.74.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.
package/config.d.ts CHANGED
@@ -432,5 +432,6 @@ export interface PlatformaticNodeJsStackable {
432
432
  absoluteUrl?: boolean;
433
433
  dispatchViaHttp?: boolean;
434
434
  disablePlatformaticInBuild?: boolean;
435
+ hasServer?: boolean;
435
436
  };
436
437
  }
package/index.js CHANGED
@@ -115,7 +115,7 @@ export class NodeStackable extends BaseStackable {
115
115
  // Deal with application
116
116
  const factory = ['build', 'create'].find(f => typeof this.#module[f] === 'function')
117
117
 
118
- if (this.#module.hasServer !== false) {
118
+ if (config.node?.hasServer !== false && this.#module.hasServer !== false) {
119
119
  if (factory) {
120
120
  // We have build function, this Stackable will not use HTTP unless it is the entrypoint
121
121
  serverPromise.cancel()
package/lib/schema.js CHANGED
@@ -24,6 +24,10 @@ const node = {
24
24
  disablePlatformaticInBuild: {
25
25
  type: 'boolean',
26
26
  default: false
27
+ },
28
+ hasServer: {
29
+ type: 'boolean',
30
+ default: true
27
31
  }
28
32
  },
29
33
  default: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/node",
3
- "version": "2.73.1",
3
+ "version": "2.74.0",
4
4
  "description": "Platformatic Node.js Stackable",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -21,10 +21,10 @@
21
21
  "dependencies": {
22
22
  "json5": "^2.2.3",
23
23
  "light-my-request": "^6.0.0",
24
- "@platformatic/basic": "2.73.1",
25
- "@platformatic/generators": "2.73.1",
26
- "@platformatic/utils": "2.73.1",
27
- "@platformatic/config": "2.73.1"
24
+ "@platformatic/config": "2.74.0",
25
+ "@platformatic/utils": "2.74.0",
26
+ "@platformatic/basic": "2.74.0",
27
+ "@platformatic/generators": "2.74.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "borp": "^0.20.0",
@@ -36,8 +36,8 @@
36
36
  "neostandard": "^0.12.0",
37
37
  "tsx": "^4.19.0",
38
38
  "typescript": "^5.5.4",
39
- "@platformatic/composer": "2.73.1",
40
- "@platformatic/service": "2.73.1"
39
+ "@platformatic/service": "2.74.0",
40
+ "@platformatic/composer": "2.74.0"
41
41
  },
42
42
  "scripts": {
43
43
  "test": "pnpm run lint && borp --concurrency=1 --no-timeout",
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/node/2.73.1.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/node/2.74.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Node.js Stackable",
5
5
  "type": "object",
@@ -1401,6 +1401,10 @@
1401
1401
  "disablePlatformaticInBuild": {
1402
1402
  "type": "boolean",
1403
1403
  "default": false
1404
+ },
1405
+ "hasServer": {
1406
+ "type": "boolean",
1407
+ "default": true
1404
1408
  }
1405
1409
  },
1406
1410
  "default": {},