@adonisjs/ignitor
Advanced tools
Comparing version 2.0.7 to 2.0.8
@@ -0,1 +1,16 @@ | ||
<a name="2.0.8"></a> | ||
## [2.0.8](https://github.com/adonisjs/adonis-ignitor/compare/v2.0.7...v2.0.8) (2018-10-01) | ||
### Bug Fixes | ||
* **ignitor:** correctly catch unhandledRejection ([7f326f8](https://github.com/adonisjs/adonis-ignitor/commit/7f326f8)) | ||
### Features | ||
* **Ignitor:** allow to set modulesRoot ([#11](https://github.com/adonisjs/adonis-ignitor/issues/11)) ([e1dda89](https://github.com/adonisjs/adonis-ignitor/commit/e1dda89)) | ||
<a name="2.0.7"></a> | ||
@@ -2,0 +17,0 @@ ## [2.0.7](https://github.com/adonisjs/adonis-ignitor/compare/v2.0.6...v2.0.7) (2018-07-17) |
# The MIT License | ||
Copyright 2018 thetutlage, contributors | ||
Copyright 2018 Harminder Virk, contributors | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
{ | ||
"name": "@adonisjs/ignitor", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"description": "Fire the adonis-app (in good sense)", | ||
@@ -13,6 +13,4 @@ "main": "index.js", | ||
"pretest": "npm run lint", | ||
"posttest": "npm run coverage", | ||
"test:local": "FORCE_COLOR=true node bin/index.js --local", | ||
"test": "nyc japa", | ||
"test:win": "node ./node_modules/japa-cli/index.js", | ||
"test": "nyc node japaFile.js", | ||
"coverage": "nyc report --reporter=text-lcov | coveralls", | ||
@@ -30,6 +28,6 @@ "commit": "git-cz", | ||
"devDependencies": { | ||
"@adonisjs/ace": "^5.0.3", | ||
"@adonisjs/ace": "^5.0.5", | ||
"@adonisjs/fold": "^4.0.9", | ||
"@adonisjs/mrm-preset": "^1.0.9", | ||
"@adonisjs/sink": "^1.0.16", | ||
"@adonisjs/mrm-preset": "^1.0.13", | ||
"@adonisjs/sink": "^1.0.17", | ||
"clear-require": "^2.0.0", | ||
@@ -40,9 +38,9 @@ "commitizen": "^2.10.1", | ||
"fs-extra": "^7.0.0", | ||
"japa": "^1.0.6", | ||
"japa": "^2.0.3", | ||
"japa-cli": "^1.0.1", | ||
"mrm": "^1.2.1", | ||
"nyc": "^12.0.2", | ||
"nyc": "^13.0.1", | ||
"pkg-ok": "^2.2.0", | ||
"semver": "^5.5.0", | ||
"standard": "^11.0.1" | ||
"semver": "^5.5.1", | ||
"standard": "^12.0.1" | ||
}, | ||
@@ -56,10 +54,9 @@ "config": { | ||
"exclude": [ | ||
"test", | ||
"japaFile.js" | ||
"test" | ||
] | ||
}, | ||
"dependencies": { | ||
"debug": "^3.1.0", | ||
"pify": "^3.0.0", | ||
"youch": "^2.0.8", | ||
"debug": "^4.0.1", | ||
"pify": "^4.0.0", | ||
"youch": "^2.0.10", | ||
"youch-terminal": "^1.0.0" | ||
@@ -66,0 +63,0 @@ }, |
@@ -50,2 +50,3 @@ 'use strict' | ||
this._appRoot = null | ||
this._modulesRoot = null | ||
this._loadCommands = false | ||
@@ -412,3 +413,4 @@ | ||
const { commands } = this._getAppAttributes() | ||
const ace = require(path.join(this._appRoot, '/node_modules/@adonisjs/ace')) | ||
const root = this._modulesRoot || this._appRoot | ||
const ace = require(path.join(root, '/node_modules/@adonisjs/ace')) | ||
commands.forEach((command) => ace.addCommand(command)) | ||
@@ -518,3 +520,4 @@ | ||
const ace = require(path.join(this._appRoot, '/node_modules/@adonisjs/ace')) | ||
const root = this._modulesRoot || this._appRoot | ||
const ace = require(path.join(root, '/node_modules/@adonisjs/ace')) | ||
ace.wireUpWithCommander() | ||
@@ -578,3 +581,3 @@ | ||
_listenForUnhandledRejection () { | ||
process.once('unhandledRejection', (response) => { | ||
process.on('unhandledRejection', (response) => { | ||
try { | ||
@@ -667,2 +670,18 @@ this._fold.ioc.use('Adonis/Src/Logger').warning(WARNING_MESSAGE) | ||
/** | ||
* Set application modules root. This path | ||
* contains the node_modules directory with | ||
* the application's dependencies. | ||
* | ||
* @method modulesRoot | ||
* | ||
* @param {String} location | ||
* | ||
* @chainable | ||
*/ | ||
modulesRoot (location) { | ||
this._modulesRoot = location | ||
return this | ||
} | ||
/** | ||
* Set the application file. This file exports | ||
@@ -669,0 +688,0 @@ * an array of providers, aceProviders, aliases |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
39620
1076
+ Addeddebug@4.4.0(transitive)
+ Addedpify@4.0.1(transitive)
- Removeddebug@3.2.7(transitive)
- Removedpify@3.0.0(transitive)
Updateddebug@^4.0.1
Updatedpify@^4.0.0
Updatedyouch@^2.0.10