From d8dace9748f82bb98263f5e8065257678622b35f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Wed, 1 Jul 2020 17:45:56 +0200 Subject: [PATCH] fix: handle nuxt static command (#7647) [release] --- packages/cli/src/run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/run.js b/packages/cli/src/run.js index e6847c5732..9d4979d43c 100644 --- a/packages/cli/src/run.js +++ b/packages/cli/src/run.js @@ -28,7 +28,7 @@ export default async function run (_argv, hooks = {}) { let cmd = await getCommand(argv[0]) // Matching `nuxt` or `nuxt [dir]` or `nuxt -*` for `nuxt dev` shortcut - if (!cmd && (!argv[0] || argv[0][0] === '-' || fs.existsSync(argv[0]))) { + if (!cmd && (!argv[0] || argv[0][0] === '-' || (argv[0] !== 'static' && fs.existsSync(argv[0])))) { argv.unshift('dev') cmd = await getCommand('dev') }