From: Haoqun Jiang Date: Mon, 14 Oct 2024 09:20:50 +0000 (+0800) Subject: fix: move tsconfig.json for cypress e2e a level up X-Git-Tag: v3.11.1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5027f2b5c49fc4b4f8c467b72025f52c9603cbb2;p=thirdparty%2Fvuejs%2Fcreate-vue.git fix: move tsconfig.json for cypress e2e a level up Tools like `typescript-eslint` does not work well with this kind of `include` pattern (i.e. starting with `../`). --- diff --git a/template/tsconfig/cypress/cypress/e2e/tsconfig.json b/template/tsconfig/cypress/cypress/tsconfig.json similarity index 60% rename from template/tsconfig/cypress/cypress/e2e/tsconfig.json rename to template/tsconfig/cypress/cypress/tsconfig.json index c94f1d49..c8f4bce5 100644 --- a/template/tsconfig/cypress/cypress/e2e/tsconfig.json +++ b/template/tsconfig/cypress/cypress/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "@vue/tsconfig/tsconfig.dom.json", - "include": ["./**/*", "../support/**/*"], + "include": ["./e2e/**/*", "./support/**/*"], + "exclude": ["./support/component.*"], "compilerOptions": { "isolatedModules": false, "types": ["cypress"]