@platformatic/basic 2.19.0-alpha.6 → 2.19.0-alpha.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/lib/base.js +4 -4
- package/lib/worker/child-manager.js +4 -3
- package/package.json +7 -7
- package/schema.json +1 -1
package/lib/base.js
CHANGED
|
@@ -15,7 +15,7 @@ import { ChildManager } from './worker/child-manager.js'
|
|
|
15
15
|
|
|
16
16
|
export class BaseStackable {
|
|
17
17
|
childManager
|
|
18
|
-
subprocess
|
|
18
|
+
#subprocess
|
|
19
19
|
#subprocessStarted
|
|
20
20
|
|
|
21
21
|
constructor (type, version, options, root, configManager) {
|
|
@@ -204,7 +204,7 @@ export class BaseStackable {
|
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
async startWithCommand (command, loader) {
|
|
207
|
+
async startWithCommand (command, loader, scripts) {
|
|
208
208
|
const config = this.configManager.current
|
|
209
209
|
const basePath = config.application?.basePath ? cleanBasePath(config.application?.basePath) : ''
|
|
210
210
|
|
|
@@ -212,7 +212,8 @@ export class BaseStackable {
|
|
|
212
212
|
this.childManager = new ChildManager({
|
|
213
213
|
logger: this.logger,
|
|
214
214
|
loader,
|
|
215
|
-
context
|
|
215
|
+
context,
|
|
216
|
+
scripts
|
|
216
217
|
})
|
|
217
218
|
|
|
218
219
|
this.childManager.on('config', config => {
|
|
@@ -372,7 +373,6 @@ export class BaseStackable {
|
|
|
372
373
|
|
|
373
374
|
return {
|
|
374
375
|
id: this.id,
|
|
375
|
-
config: this.configManager.current,
|
|
376
376
|
serviceId: this.serviceId,
|
|
377
377
|
workerId: this.workerId,
|
|
378
378
|
// Always use URL to avoid serialization problem in Windows
|
|
@@ -3,15 +3,16 @@ import { createDirectory, ensureLoggableError } from '@platformatic/utils'
|
|
|
3
3
|
import { once } from 'node:events'
|
|
4
4
|
import { rm, writeFile } from 'node:fs/promises'
|
|
5
5
|
import { createServer } from 'node:http'
|
|
6
|
-
import { createRequire, register } from 'node:module'
|
|
7
|
-
import { platform, tmpdir } from 'node:os'
|
|
8
|
-
import { dirname, join, resolve } from 'node:path'
|
|
9
6
|
import { pathToFileURL } from 'node:url'
|
|
7
|
+
import { register } from 'node:module'
|
|
8
|
+
import { platform, tmpdir } from 'node:os'
|
|
9
|
+
import { dirname, resolve, join } from 'node:path'
|
|
10
10
|
import { workerData } from 'node:worker_threads'
|
|
11
11
|
import { request } from 'undici'
|
|
12
12
|
import { WebSocketServer } from 'ws'
|
|
13
13
|
import { exitCodes } from '../errors.js'
|
|
14
14
|
import { ensureFileUrl } from '../utils.js'
|
|
15
|
+
import { createRequire } from 'node:module'
|
|
15
16
|
|
|
16
17
|
export const isWindows = platform() === 'win32'
|
|
17
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/basic",
|
|
3
|
-
"version": "2.19.0-alpha.
|
|
3
|
+
"version": "2.19.0-alpha.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"split2": "^4.2.0",
|
|
24
24
|
"undici": "^6.19.5",
|
|
25
25
|
"ws": "^8.18.0",
|
|
26
|
-
"@platformatic/
|
|
27
|
-
"@platformatic/
|
|
28
|
-
"@platformatic/utils": "2.19.0-alpha.
|
|
29
|
-
"@platformatic/
|
|
30
|
-
"@platformatic/
|
|
26
|
+
"@platformatic/itc": "2.19.0-alpha.7",
|
|
27
|
+
"@platformatic/config": "2.19.0-alpha.7",
|
|
28
|
+
"@platformatic/utils": "2.19.0-alpha.7",
|
|
29
|
+
"@platformatic/metrics": "2.19.0-alpha.7",
|
|
30
|
+
"@platformatic/telemetry": "2.19.0-alpha.7"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"borp": "^0.19.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"fastify": "^5.0.0",
|
|
37
37
|
"json-schema-to-typescript": "^15.0.0",
|
|
38
38
|
"neostandard": "^0.11.1",
|
|
39
|
-
"next": "^
|
|
39
|
+
"next": "^15.0.0",
|
|
40
40
|
"react": "^18.3.1",
|
|
41
41
|
"react-dom": "^18.3.1",
|
|
42
42
|
"typescript": "^5.5.4",
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/basic/2.19.0-alpha.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/basic/2.19.0-alpha.7.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Stackable",
|
|
5
5
|
"type": "object",
|