mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
lint bin
This commit is contained in:
parent
0f6ccd595d
commit
e6c3ef11be
4
bin/nuxt
4
bin/nuxt
@ -14,11 +14,11 @@ var commands = new Set([
|
|||||||
var cmd = process.argv[2]
|
var cmd = process.argv[2]
|
||||||
|
|
||||||
if (commands.has(cmd)) {
|
if (commands.has(cmd)) {
|
||||||
process.argv.splice(2,1)
|
process.argv.splice(2, 1)
|
||||||
} else {
|
} else {
|
||||||
cmd = defaultCommand
|
cmd = defaultCommand
|
||||||
}
|
}
|
||||||
|
|
||||||
var bin = join(__dirname, 'nuxt-' + cmd)
|
var bin = join(__dirname, 'nuxt-' + cmd)
|
||||||
|
|
||||||
require(bin);
|
require(bin)
|
||||||
|
Loading…
Reference in New Issue
Block a user