@platformatic/node 2.59.0 → 2.59.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/index.js +1 -14
- package/package.json +8 -8
- package/schema.json +1 -1
package/index.js
CHANGED
|
@@ -300,7 +300,6 @@ export class NodeStackable extends BaseStackable {
|
|
|
300
300
|
|
|
301
301
|
async _findEntrypoint () {
|
|
302
302
|
const config = this.configManager.current
|
|
303
|
-
const outputRoot = resolve(this.root, config.application.outputDirectory)
|
|
304
303
|
|
|
305
304
|
if (config.node.main) {
|
|
306
305
|
return pathResolve(this.root, config.node.main)
|
|
@@ -324,19 +323,7 @@ export class NodeStackable extends BaseStackable {
|
|
|
324
323
|
}
|
|
325
324
|
}
|
|
326
325
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
if (this.isProduction) {
|
|
330
|
-
const hasCommand = this.configManager.current.application.commands.build
|
|
331
|
-
const hasBuildScript = await this.#hasBuildScript()
|
|
332
|
-
|
|
333
|
-
if (hasCommand || hasBuildScript) {
|
|
334
|
-
this.verifyOutputDirectory(outputRoot)
|
|
335
|
-
root = outputRoot
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
return pathResolve(root, entrypoint)
|
|
326
|
+
return pathResolve(this.root, entrypoint)
|
|
340
327
|
}
|
|
341
328
|
|
|
342
329
|
async #hasBuildScript () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/node",
|
|
3
|
-
"version": "2.59.
|
|
3
|
+
"version": "2.59.1",
|
|
4
4
|
"description": "Platformatic Node.js Stackable",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"json5": "^2.2.3",
|
|
19
19
|
"light-my-request": "^6.0.0",
|
|
20
|
-
"@platformatic/
|
|
21
|
-
"@platformatic/
|
|
22
|
-
"@platformatic/utils": "2.59.
|
|
20
|
+
"@platformatic/basic": "2.59.1",
|
|
21
|
+
"@platformatic/config": "2.59.1",
|
|
22
|
+
"@platformatic/utils": "2.59.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"borp": "^0.19.0",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"neostandard": "^0.12.0",
|
|
32
32
|
"tsx": "^4.19.0",
|
|
33
33
|
"typescript": "^5.5.4",
|
|
34
|
-
"@platformatic/service": "2.59.
|
|
35
|
-
"@platformatic/composer": "2.59.
|
|
34
|
+
"@platformatic/service": "2.59.1",
|
|
35
|
+
"@platformatic/composer": "2.59.1"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
|
-
"test": "
|
|
39
|
-
"coverage": "
|
|
38
|
+
"test": "pnpm run lint && borp --concurrency=1 --no-timeout",
|
|
39
|
+
"coverage": "pnpm run lint && borp -C -X test -X test/fixtures --concurrency=1 --no-timeout",
|
|
40
40
|
"gen-schema": "node lib/schema.js > schema.json",
|
|
41
41
|
"gen-types": "json2ts > config.d.ts < schema.json",
|
|
42
42
|
"build": "pnpm run gen-schema && pnpm run gen-types",
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/node/2.59.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/node/2.59.1.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Node.js Stackable",
|
|
5
5
|
"type": "object",
|