Comparing version 2.9.1 to 2.9.2
/*! | ||
* @nuxt/cli v2.9.1 (c) 2016-2019 | ||
* @nuxt/cli v2.9.2 (c) 2016-2019 | ||
@@ -4,0 +4,0 @@ * - All the amazing contributors |
/*! | ||
* @nuxt/cli v2.9.1 (c) 2016-2019 | ||
* @nuxt/cli v2.9.2 (c) 2016-2019 | ||
@@ -4,0 +4,0 @@ * - All the amazing contributors |
/*! | ||
* @nuxt/cli v2.9.1 (c) 2016-2019 | ||
* @nuxt/cli v2.9.2 (c) 2016-2019 | ||
@@ -4,0 +4,0 @@ * - All the amazing contributors |
/*! | ||
* @nuxt/cli v2.9.1 (c) 2016-2019 | ||
* @nuxt/cli v2.9.2 (c) 2016-2019 | ||
@@ -4,0 +4,0 @@ * - All the amazing contributors |
/*! | ||
* @nuxt/cli v2.9.1 (c) 2016-2019 | ||
* @nuxt/cli v2.9.2 (c) 2016-2019 | ||
@@ -24,2 +24,3 @@ * - All the amazing contributors | ||
require('minimist'); | ||
require('hable'); | ||
require('esm'); | ||
@@ -26,0 +27,0 @@ |
/*! | ||
* @nuxt/cli v2.9.1 (c) 2016-2019 | ||
* @nuxt/cli v2.9.2 (c) 2016-2019 | ||
@@ -4,0 +4,0 @@ * - All the amazing contributors |
/*! | ||
* @nuxt/cli v2.9.1 (c) 2016-2019 | ||
* @nuxt/cli v2.9.2 (c) 2016-2019 | ||
@@ -4,0 +4,0 @@ * - All the amazing contributors |
/*! | ||
* @nuxt/cli v2.9.1 (c) 2016-2019 | ||
* @nuxt/cli v2.9.2 (c) 2016-2019 | ||
@@ -26,2 +26,3 @@ * - All the amazing contributors | ||
require('minimist'); | ||
require('hable'); | ||
require('esm'); | ||
@@ -75,3 +76,3 @@ const fs = _interopDefault(require('fs')); | ||
async function run (_argv) { | ||
async function run (_argv, hooks = {}) { | ||
// Check for not installing both nuxt and nuxt-edge | ||
@@ -95,8 +96,17 @@ const dupPkg = '@nuxt/' + ( 'cli-edge'); | ||
// Check for dev | ||
const dev = argv[0] === 'dev'; | ||
// Call setup hook | ||
if (typeof hooks.setup === 'function') { | ||
await hooks.setup({ cmd, dev, argv }); | ||
delete hooks.setup; | ||
} | ||
// Setup env | ||
setup({ dev: argv[0] === 'dev' }); | ||
setup({ dev }); | ||
// Try internal command | ||
if (cmd) { | ||
return command.NuxtCommand.run(cmd, argv.slice(1)) | ||
return command.NuxtCommand.run(cmd, argv.slice(1), hooks) | ||
} | ||
@@ -103,0 +113,0 @@ |
{ | ||
"name": "@nuxt/cli", | ||
"version": "2.9.1", | ||
"version": "2.9.2", | ||
"repository": "nuxt/nuxt.js", | ||
@@ -15,4 +15,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@nuxt/config": "2.9.1", | ||
"@nuxt/utils": "2.9.1", | ||
"@nuxt/config": "2.9.2", | ||
"@nuxt/utils": "2.9.2", | ||
"boxen": "^4.1.0", | ||
@@ -25,2 +25,3 @@ "chalk": "^2.4.2", | ||
"fs-extra": "^8.1.0", | ||
"hable": "^2.2.1", | ||
"minimist": "^1.2.0", | ||
@@ -27,0 +28,0 @@ "opener": "1.5.1", |
Sorry, the diff of this file is too big to display
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
95684
12
3169
15
+ Addedhable@^2.2.1
+ Added@nuxt/config@2.9.2(transitive)
+ Added@nuxt/utils@2.9.2(transitive)
+ Addedhable@2.3.2(transitive)
- Removed@nuxt/config@2.9.1(transitive)
- Removed@nuxt/utils@2.9.1(transitive)
Updated@nuxt/config@2.9.2
Updated@nuxt/utils@2.9.2