@platformatic/node 2.25.0 → 2.26.0-alpha.1
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 +1 -0
- package/index.js +4 -3
- package/lib/schema.js +4 -0
- package/package.json +6 -6
- package/schema.json +5 -1
package/config.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -164,10 +164,11 @@ export class NodeStackable extends BaseStackable {
|
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
async build () {
|
|
167
|
-
const
|
|
167
|
+
const config = this.configManager.current.application
|
|
168
|
+
const command = config.commands.build
|
|
168
169
|
|
|
169
170
|
if (command) {
|
|
170
|
-
return this.buildWithCommand(command, null)
|
|
171
|
+
return this.buildWithCommand(command, null, { disableChildManager: config.disablePlatformaticInBuild })
|
|
171
172
|
}
|
|
172
173
|
|
|
173
174
|
// If no command was specified, we try to see if there is a build script defined in package.json.
|
|
@@ -180,7 +181,7 @@ export class NodeStackable extends BaseStackable {
|
|
|
180
181
|
return
|
|
181
182
|
}
|
|
182
183
|
|
|
183
|
-
return this.buildWithCommand('npm run build', null)
|
|
184
|
+
return this.buildWithCommand('npm run build', null, { disableChildManager: config.disablePlatformaticInBuild })
|
|
184
185
|
}
|
|
185
186
|
|
|
186
187
|
async inject (injectParams, onInject) {
|
package/lib/schema.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/node",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.26.0-alpha.1",
|
|
4
4
|
"description": "Platformatic Node.js Stackable",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"homepage": "https://github.com/platformatic/platformatic#readme",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"light-my-request": "^6.0.0",
|
|
19
|
-
"@platformatic/basic": "2.
|
|
20
|
-
"@platformatic/config": "2.
|
|
21
|
-
"@platformatic/utils": "2.
|
|
19
|
+
"@platformatic/basic": "2.26.0-alpha.1",
|
|
20
|
+
"@platformatic/config": "2.26.0-alpha.1",
|
|
21
|
+
"@platformatic/utils": "2.26.0-alpha.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"borp": "^0.19.0",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"neostandard": "^0.12.0",
|
|
31
31
|
"tsx": "^4.19.0",
|
|
32
32
|
"typescript": "^5.5.4",
|
|
33
|
-
"@platformatic/
|
|
34
|
-
"@platformatic/
|
|
33
|
+
"@platformatic/composer": "2.26.0-alpha.1",
|
|
34
|
+
"@platformatic/service": "2.26.0-alpha.1"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"test": "npm 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.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/node/2.26.0-alpha.1.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Node.js Stackable",
|
|
5
5
|
"type": "object",
|
|
@@ -311,6 +311,10 @@
|
|
|
311
311
|
"dispatchViaHttp": {
|
|
312
312
|
"type": "boolean",
|
|
313
313
|
"default": false
|
|
314
|
+
},
|
|
315
|
+
"disablePlatformaticInBuild": {
|
|
316
|
+
"type": "boolean",
|
|
317
|
+
"default": false
|
|
314
318
|
}
|
|
315
319
|
},
|
|
316
320
|
"default": {},
|