Skip to content

Commit

Permalink
chore: set vue-tsc.tsconfigPath
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <[email protected]>
  • Loading branch information
pedrolamas committed Nov 10, 2022
1 parent 9b431f7 commit 3b6b33a
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 9 deletions.
16 changes: 13 additions & 3 deletions tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
{
"extends": "@vue/tsconfig/tsconfig.web.json",
"include": ["env.d.ts", "components.d.ts", "src/**/*", "src/**/*.vue"],
"exclude": ["src/**/__tests__/*"],
"include": [
"env.d.ts",
"components.d.ts",
"src/**/*",
"src/**/*.vue",
"src/monaco/theme/editor.*.theme.json"
],
"exclude": [
"src/**/__tests__/*"
],
"compilerOptions": {
"composite": true,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
"@/*": [
"./src/*"
]
},

// if `<script setup>` is used, then remove the next line
Expand Down
11 changes: 9 additions & 2 deletions tsconfig.config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
{
"extends": "@vue/tsconfig/tsconfig.node.json",
"include": ["vite.config.*", "vitest.config.*", "cypress.config.*", "package.json"],
"include": [
"vite.config.*",
"vitest.config.*",
"cypress.config.*",
"package.json"
],
"compilerOptions": {
"composite": true,
"types": ["node"]
"types": [
"node"
]
}
}
16 changes: 13 additions & 3 deletions tsconfig.vitest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
{
"extends": "./tsconfig.app.json",
"include": ["env.d.ts", "src/**/*", "src/**/*.vue", "tests/**/*"],
"include": [
"env.d.ts",
"src/**/*",
"src/**/*.vue",
"tests/**/*"
],
"exclude": [],
"compilerOptions": {
"composite": true,
"lib": ["ES2016"],
"types": ["node", "jsdom"]
"lib": [
"ES2016"
],
"types": [
"node",
"jsdom"
]
}
}
4 changes: 3 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ export default defineConfig({
languageWorkers: ['editorWorkerService', 'json', 'css']
}),
checker({
vueTsc: true
vueTsc: {
tsconfigPath: path.resolve(__dirname, './tsconfig.app.json')
}
}),
Components({
dts: true,
Expand Down

0 comments on commit 3b6b33a

Please sign in to comment.