From 2f4a4cbe389a99ef8fd8b69813767f40bc45e5e8 Mon Sep 17 00:00:00 2001 From: IWANABETHATGUY <974153916@qq.com> Date: Fri, 17 Apr 2020 17:08:29 +0800 Subject: [PATCH] chore(benchmark): fix `package.json` scripts (#7205) --- benchmarks/package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/benchmarks/package.json b/benchmarks/package.json index d3f5220127..c5824558a4 100644 --- a/benchmarks/package.json +++ b/benchmarks/package.json @@ -1,8 +1,9 @@ { "name": "nuxt-benchmarks", "scripts": { - "build": "nuxt build", - "start": "npm run build && nuxt start", + "build": "npm run nuxt -- build", + "start": "npm run build && npm run nuxt -- start", + "nuxt": "node -r esm ../packages/cli/bin/nuxt-cli.js", "bench:stateless": "ab -c1 -n3000 http://127.0.0.1:3000/stateless", "bench:stateless-big": "ab -c1 -n500 http://127.0.0.1:3000/stateless-big" }