@adonisjs/core
Advanced tools
Comparing version 2.7.4 to 2.7.5
@@ -26,2 +26,6 @@ import adonisAce from '@adonisjs/ace'; | ||
/** | ||
* Print commands help | ||
*/ | ||
private printHelp; | ||
/** | ||
* Raises human friendly error when the `build` directory is | ||
@@ -28,0 +32,0 @@ * missing during `generate:manifest` command. |
@@ -40,2 +40,15 @@ "use strict"; | ||
/** | ||
* Print commands help | ||
*/ | ||
printHelp(kernel, command) { | ||
/** | ||
* Updating manifest commands object during help | ||
*/ | ||
Object.keys(this.additionalManifestCommands).forEach((commandName) => { | ||
kernel.manifestCommands[commandName] = this.additionalManifestCommands[commandName]; | ||
}); | ||
kernel.printHelp(command); | ||
process.exit(0); | ||
} | ||
/** | ||
* Raises human friendly error when the `build` directory is | ||
@@ -90,10 +103,3 @@ * missing during `generate:manifest` command. | ||
} | ||
/** | ||
* Updating manifest commands object during help | ||
*/ | ||
Object.keys(this.additionalManifestCommands).forEach((commandName) => { | ||
kernel.manifestCommands[commandName] = this.additionalManifestCommands[commandName]; | ||
}); | ||
kernel.printHelp(command); | ||
process.exit(0); | ||
this.printHelp(kernel, command); | ||
}, { alias: 'h' }); | ||
@@ -142,2 +148,8 @@ /** | ||
await kernel.preloadManifest(); | ||
/** | ||
* Print help when no arguments have been passed | ||
*/ | ||
if (!argv.length) { | ||
this.printHelp(kernel); | ||
} | ||
await kernel.handle(argv); | ||
@@ -144,0 +156,0 @@ this.signalsListener.listen(async () => { |
{ | ||
"name": "@adonisjs/core", | ||
"version": "2.7.4", | ||
"version": "2.7.5", | ||
"description": "Adonisjs core", | ||
@@ -42,5 +42,5 @@ "main": "build/providers/AppProvider.js", | ||
"devDependencies": { | ||
"@adonisjs/ace": "^6.7.5", | ||
"@adonisjs/ace": "^6.8.1", | ||
"@adonisjs/assembler": "^1.2.7", | ||
"@adonisjs/fold": "^6.2.3", | ||
"@adonisjs/fold": "^6.3.0", | ||
"@adonisjs/mrm-preset": "^2.2.3", | ||
@@ -50,6 +50,6 @@ "@adonisjs/sink": "^2.4.3", | ||
"@types/ms": "^0.7.31", | ||
"@types/node": "^13.1.6", | ||
"@types/node": "^13.1.8", | ||
"@types/supertest": "^2.0.8", | ||
"commitizen": "^4.0.3", | ||
"copyfiles": "^2.1.1", | ||
"copyfiles": "^2.2.0", | ||
"cz-conventional-changelog": "^3.0.2", | ||
@@ -60,3 +60,3 @@ "del-cli": "^3.0.0", | ||
"eslint-plugin-adonis": "^1.0.5", | ||
"husky": "^4.0.7", | ||
"husky": "^4.0.10", | ||
"japa": "^3.0.1", | ||
@@ -70,3 +70,3 @@ "mrm": "^2.0.2", | ||
"ts-node": "^8.6.2", | ||
"typescript": "^3.7.4", | ||
"typescript": "^3.7.5", | ||
"youch": "^2.0.10", | ||
@@ -101,3 +101,3 @@ "youch-terminal": "^1.0.0" | ||
"@adonisjs/hash": "^1.0.10", | ||
"@adonisjs/http-server": "^1.6.5", | ||
"@adonisjs/http-server": "^1.6.6", | ||
"@adonisjs/logger": "^1.1.7", | ||
@@ -104,0 +104,0 @@ "@adonisjs/profiler": "^1.2.4", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97151
2468
Updated@adonisjs/http-server@^1.6.6