@lakutata/core 3.1.5 → 3.1.6
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.
|
@@ -504,8 +504,10 @@ class Application extends Module_js_1.Module {
|
|
|
504
504
|
}
|
|
505
505
|
if (!migrationTargets.length) {
|
|
506
506
|
//Nothing to generate; the other commands need a database
|
|
507
|
-
if (migrationCommand.action === 'generate')
|
|
507
|
+
if (migrationCommand.action === 'generate') {
|
|
508
|
+
console.log('The application has no Database component or provider');
|
|
508
509
|
process.exit(0);
|
|
510
|
+
}
|
|
509
511
|
console.error('The application has no Database component or provider');
|
|
510
512
|
process.exit(1);
|
|
511
513
|
}
|
|
@@ -498,8 +498,10 @@ export class Application extends Module {
|
|
|
498
498
|
}
|
|
499
499
|
if (!migrationTargets.length) {
|
|
500
500
|
//Nothing to generate; the other commands need a database
|
|
501
|
-
if (migrationCommand.action === 'generate')
|
|
501
|
+
if (migrationCommand.action === 'generate') {
|
|
502
|
+
console.log('The application has no Database component or provider');
|
|
502
503
|
process.exit(0);
|
|
504
|
+
}
|
|
503
505
|
console.error('The application has no Database component or provider');
|
|
504
506
|
process.exit(1);
|
|
505
507
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lakutata/core",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.6",
|
|
4
4
|
"description": "The core of the lakutata framework: the IoC container and dependency injection, the object model with asynchronous construction, and DTO schema validation with the API of joi.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lakutata",
|