@superhero/core 4.0.8 → 4.0.10
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 +4 -3
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -133,6 +133,7 @@ export default class Core
|
|
|
133
133
|
error.code = 'E_CORE_DESTROY_GRACEFUL'
|
|
134
134
|
error.cause = destroyRejects
|
|
135
135
|
Core.log.fail`${error}`
|
|
136
|
+
reason && Core.log.fail`${reason}`
|
|
136
137
|
setImmediate(() => process.exit(1))
|
|
137
138
|
}
|
|
138
139
|
else if(reason)
|
|
@@ -588,7 +589,7 @@ export default class Core
|
|
|
588
589
|
async #addConfigPath(configPath)
|
|
589
590
|
{
|
|
590
591
|
const { filepath, config } = await this.config.resolve(configPath)
|
|
591
|
-
this.#addConfigDependencies(filepath, config)
|
|
592
|
+
await this.#addConfigDependencies(filepath, config)
|
|
592
593
|
this.config.add(filepath, config)
|
|
593
594
|
Core.log.info`assigned config ${configPath}`
|
|
594
595
|
|
|
@@ -597,7 +598,7 @@ export default class Core
|
|
|
597
598
|
try
|
|
598
599
|
{
|
|
599
600
|
const { filepath, config } = await this.config.resolve(configPath, this.branch)
|
|
600
|
-
this.#addConfigDependencies(filepath, config)
|
|
601
|
+
await this.#addConfigDependencies(filepath, config)
|
|
601
602
|
this.config.add(filepath, config)
|
|
602
603
|
Core.log.info`assigned config ${configPath + '-' + this.branch}`
|
|
603
604
|
}
|
|
@@ -657,7 +658,7 @@ export default class Core
|
|
|
657
658
|
}
|
|
658
659
|
|
|
659
660
|
const { filepath, config } = await this.config.resolve(dependencyPath)
|
|
660
|
-
this.#addConfigDependencies(filepath, config)
|
|
661
|
+
await this.#addConfigDependencies(filepath, config)
|
|
661
662
|
this.config.add(filepath, config)
|
|
662
663
|
}
|
|
663
664
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superhero/core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.10",
|
|
4
4
|
"description": "Core functionalities for the superhero framework.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@superhero/locator": "^4.2.5",
|
|
13
|
-
"@superhero/bootstrap": "^4.1.
|
|
13
|
+
"@superhero/bootstrap": "^4.1.4"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"test": "node --trace-warnings --test --experimental-test-coverage"
|