Skip to content

Commit

Permalink
chore: update tsconfig with tsBuildInfoFile
Browse files Browse the repository at this point in the history
  • Loading branch information
kingyue737 committed Mar 22, 2024
1 parent bd83846 commit 1ee675f
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 5 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'",
"test:unit": "vitest",
"coverage": "vitest run --coverage",
"typecheck": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
"typecheck": "vue-tsc --build --force",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
},
"dependencies": {
Expand All @@ -33,6 +33,7 @@
"@pinia/testing": "^0.1.3",
"@rushstack/eslint-patch": "^1.7.2",
"@testing-library/vue": "^5.9.0",
"@types/jsdom": "^21.1.6",
"@types/node": "^20.11.26",
"@vitejs/plugin-legacy": "^5.3.2",
"@vitejs/plugin-vue2": "^2.3.1",
Expand Down
15 changes: 15 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/layout/AppMessageItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default defineComponent({
return
}
activeTimeout = setTimeout(() => {
activeTimeout = window.setTimeout(() => {
isActive.value = false
}, timeout.value)
}
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"isolatedModules": true,
"verbatimModuleSyntax": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"composite": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"paths": {
"@/*": ["src/*"]
},
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"path": "./tsconfig.node.json"
},
{
"path": "./tsconfig.app.json"
"path": "./tsconfig.vitest.json"
},
{
"path": "./tsconfig.vitest.json"
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.cypress.json"
Expand Down
1 change: 1 addition & 0 deletions tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"include": ["vite.config.*"],
"compilerOptions": {
"composite": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
"types": ["node", "vitest"],
"lib": []
}
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.vitest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"exclude": [],
"compilerOptions": {
"composite": true,
"types": ["node", "vitest/globals"]
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.vitest.tsbuildinfo",
"types": ["node", "jsdom", "vitest/globals"]
}
}

0 comments on commit 1ee675f

Please sign in to comment.