@platformatic/runtime 1.52.1 → 1.52.2

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.
@@ -442,7 +442,6 @@ class RuntimeGenerator extends BaseGenerator {
442
442
  envTool.addKey(key, value)
443
443
  })
444
444
  }
445
-
446
445
  // update runtime package.json dependencies
447
446
  currrentPackageJson.dependencies = {
448
447
  ...currrentPackageJson.dependencies,
@@ -454,6 +453,20 @@ class RuntimeGenerator extends BaseGenerator {
454
453
  contents: JSON.stringify(currrentPackageJson, null, 2)
455
454
  })
456
455
 
456
+ // set new entrypoint if specified
457
+ const newEntrypoint = newConfig.entrypoint
458
+ if (newEntrypoint) {
459
+ // load platformatic.json runtime config
460
+ const runtimePkgConfigFileData = JSON.parse(await readFile(join(this.targetDirectory, 'platformatic.json'), 'utf-8'))
461
+
462
+ this.setEntryPoint(newEntrypoint)
463
+ runtimePkgConfigFileData.entrypoint = newEntrypoint
464
+ this.addFile({
465
+ path: '',
466
+ file: 'platformatic.json',
467
+ contents: JSON.stringify(runtimePkgConfigFileData, null, 2)
468
+ })
469
+ }
457
470
  await this.writeFiles()
458
471
  // save new env
459
472
  await envTool.save()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/runtime",
3
- "version": "1.52.1",
3
+ "version": "1.52.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -34,8 +34,8 @@
34
34
  "typescript": "^5.4.2",
35
35
  "undici-oidc-interceptor": "^0.5.0",
36
36
  "why-is-node-running": "^2.2.2",
37
- "@platformatic/sql-graphql": "1.52.1",
38
- "@platformatic/sql-mapper": "1.52.1"
37
+ "@platformatic/sql-graphql": "1.52.2",
38
+ "@platformatic/sql-mapper": "1.52.2"
39
39
  },
40
40
  "dependencies": {
41
41
  "@fastify/error": "^3.4.1",
@@ -63,14 +63,14 @@
63
63
  "undici": "^6.9.0",
64
64
  "why-is-node-running": "^2.2.2",
65
65
  "ws": "^8.16.0",
66
- "@platformatic/bus": "1.52.1",
67
- "@platformatic/config": "1.52.1",
68
- "@platformatic/composer": "1.52.1",
69
- "@platformatic/generators": "1.52.1",
70
- "@platformatic/service": "1.52.1",
71
- "@platformatic/telemetry": "1.52.1",
72
- "@platformatic/db": "1.52.1",
73
- "@platformatic/utils": "1.52.1"
66
+ "@platformatic/composer": "1.52.2",
67
+ "@platformatic/config": "1.52.2",
68
+ "@platformatic/db": "1.52.2",
69
+ "@platformatic/generators": "1.52.2",
70
+ "@platformatic/service": "1.52.2",
71
+ "@platformatic/telemetry": "1.52.2",
72
+ "@platformatic/bus": "1.52.2",
73
+ "@platformatic/utils": "1.52.2"
74
74
  },
75
75
  "standard": {
76
76
  "ignore": [