From 0c8a3b034868a6478d2f68052b915167cb27ca24 Mon Sep 17 00:00:00 2001 From: Sebin Nyshkim Date: Fri, 1 Sep 2023 12:29:06 +0200 Subject: [PATCH] build: update scaffolding to current create-vue template --- tsconfig.app.json | 12 ++++++++++++ tsconfig.json | 13 ++++--------- tsconfig.node.json | 13 +++++++++++-- 3 files changed, 27 insertions(+), 11 deletions(-) create mode 100644 tsconfig.app.json diff --git a/tsconfig.app.json b/tsconfig.app.json new file mode 100644 index 0000000..2c1533a --- /dev/null +++ b/tsconfig.app.json @@ -0,0 +1,12 @@ +{ + "extends": "@vue/tsconfig/tsconfig.dom.json", + "include": ["globals.d.ts", "env.d.ts", "src/**/*", "src/**/*.vue"], + "exclude": ["src/**/__tests__/*"], + "compilerOptions": { + "composite": true, + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + } + } +} diff --git a/tsconfig.json b/tsconfig.json index cb2043b..66b5e57 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,16 +1,11 @@ { - "extends": "@vue/tsconfig/tsconfig.web.json", - "include": ["env.d.ts", "src/**/*", "src/**/*.vue"], - "compilerOptions": { - "baseUrl": ".", - "paths": { - "@/*": ["./src/*"] - } - }, - + "files": [], "references": [ { "path": "./tsconfig.node.json" + }, + { + "path": "./tsconfig.app.json" } ] } diff --git a/tsconfig.node.json b/tsconfig.node.json index 424084a..e8360c3 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -1,8 +1,17 @@ { - "extends": "@vue/tsconfig/tsconfig.node.json", - "include": ["vite.config.*", "vitest.config.*", "cypress.config.*", "playwright.config.*"], + "extends": "@tsconfig/node18/tsconfig.json", + "include": [ + "globals.d.ts", + "vite.config.*", + "vitest.config.*", + "cypress.config.*", + "nightwatch.conf.*", + "playwright.config.*" + ], "compilerOptions": { "composite": true, + "module": "ESNext", + "moduleResolution": "Bundler", "types": ["node"] } }