From ccf03a7f97c582b535a6607cd511c3770683048b Mon Sep 17 00:00:00 2001 From: Nogic <24802730+nogic1008@users.noreply.github.com> Date: Mon, 22 Aug 2022 01:05:06 +0000 Subject: [PATCH] fix: change npm scripts --- package.json | 4 ++-- yarn.lock | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 155f24480..0288108e5 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "yarn": "^1.22.4" }, "scripts": { + "prepare": "nuxt prepare", "dev": "nuxt dev", "build": "nuxt generate", "fix": "run-p \"lint:eslint --fix\" \"lint:prettier --write\"", @@ -16,7 +17,6 @@ "lint:eslint": "eslint --ext .js,.ts,.vue --ignore-path .gitignore .", "lint:prettier": "prettier --ignore-path .gitignore -l \"**/*.{js,ts,vue,json,yaml,yml,scss}\"", "lint:tsc": "nuxt typecheck", - "pretest": "nuxt prepare", "test": "vitest run" }, "repository": { @@ -30,9 +30,9 @@ "devDependencies": { "@nuxt/content": "^2.0.1", "@nuxtjs/eslint-config-typescript": "^10.0.0", + "@vitest/coverage-c8": "^0.22.1", "@vue/test-utils": "^2.0.2", "ajv": "^8.11.0", - "c8": "^7.12.0", "eslint": "^8.20.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-nuxt": "^3.2.0", diff --git a/yarn.lock b/yarn.lock index 4be4fa523..c1e2de81d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -961,6 +961,14 @@ resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue/-/plugin-vue-3.0.3.tgz#7e3e401ccb30b4380d2279d9849281413f1791ef" integrity sha512-U4zNBlz9mg+TA+i+5QPc3N5lQvdUXENZLO2h0Wdzp56gI1MWhqJOv+6R+d4kOzoaSSq6TnGPBdZAXKOe4lXy6g== +"@vitest/coverage-c8@^0.22.1": + version "0.22.1" + resolved "https://registry.yarnpkg.com/@vitest/coverage-c8/-/coverage-c8-0.22.1.tgz#d91b3487caca570a815899943c1939fe421fc114" + integrity sha512-KOOYpO7EGpaF+nD8GD+Y05D0JtZp12NUu6DdLXvBPqSOPo2HkZ7KNBtfR0rb6gOy3NLtGiWTYTzCwhajgb2HlA== + dependencies: + c8 "^7.12.0" + vitest "0.22.1" + "@volar/code-gen@0.40.1": version "0.40.1" resolved "https://registry.yarnpkg.com/@volar/code-gen/-/code-gen-0.40.1.tgz#30637162626bd2ea6e3c3c3cedab291494870c25" @@ -7098,7 +7106,7 @@ vite-plugin-checker@^0.4.9: optionalDependencies: fsevents "~2.3.2" -vitest@^0.22.1: +vitest@0.22.1, vitest@^0.22.1: version "0.22.1" resolved "https://registry.yarnpkg.com/vitest/-/vitest-0.22.1.tgz#3122e6024bf782ee9aca53034017af7adb009c32" integrity sha512-+x28YTnSLth4KbXg7MCzoDAzPJlJex7YgiZbUh6YLp0/4PqVZ7q7/zyfdL0OaPtKTpNiQFPpMC8Y2MSzk8F7dw==