From 0ca37b745340248c97db1259681cb36c4c445359 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Wed, 4 Sep 2019 01:20:22 +0800 Subject: [PATCH] fix: correctly sort test scripts in package.json The previous `keyOrder` referred to the legacy `test` & `e2e` commands that were removed / deprecated since 3.0 stable --- packages/@vue/cli/lib/Generator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@vue/cli/lib/Generator.js b/packages/@vue/cli/lib/Generator.js index 7d12ce2648..c1d18f32fc 100644 --- a/packages/@vue/cli/lib/Generator.js +++ b/packages/@vue/cli/lib/Generator.js @@ -222,8 +222,8 @@ module.exports = class Generator { this.pkg.scripts = sortObject(this.pkg.scripts, [ 'serve', 'build', - 'test', - 'e2e', + 'test:unit', + 'test:e2e', 'lint', 'deploy' ])