Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
feat(typescript): remove redundant tsBuildInfoFile, don't inherit tsc…
…onfig.app.json
  • Loading branch information
unshame committed Aug 5, 2024
commit 965871616e323502305c59c8000b0e624dd54197
2 changes: 0 additions & 2 deletions template/tsconfig/base/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
"noEmit": false,
"emitDeclarationOnly": true,
"outDir": "./node_modules/.tmp/app",
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",

"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
Expand Down
2 changes: 0 additions & 2 deletions template/tsconfig/base/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
"noEmit": false,
"emitDeclarationOnly": true,
"outDir": "./node_modules/.tmp/node",
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",

"module": "ESNext",
"moduleResolution": "Bundler",
"types": ["node"]
Expand Down
10 changes: 7 additions & 3 deletions template/tsconfig/cypress-ct/tsconfig.cypress-ct.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
{
"extends": "./tsconfig.app.json",
"extends": "@vue/tsconfig/tsconfig.dom.json",
"include": [
"src/**/__tests__/*",
"cypress/support/component.*",
"cypress/support/commands.ts"
],
"exclude": [],
"compilerOptions": {
"composite": true,
"noEmit": false,
"emitDeclarationOnly": true,
"outDir": "./node_modules/.tmp/cypress-ct",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not strictly necessary to have the declarations output for anything but the tsconfig.app.json right now, but I think it makes sense to make them all work the same way.

Copy link

@codethief codethief Aug 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. Besides, whether or not declarations will be output will change slightly in TypeScript 5.6, see microsoft/TypeScript#32651 (comment)

"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.cypress-ct.tsbuildinfo"
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
},
"references": [
{ "path": "./tsconfig.app.json" }
Expand Down
15 changes: 8 additions & 7 deletions template/tsconfig/vitest/tsconfig.vitest.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"extends": "./tsconfig.app.json",
"include": [
"src/**/__tests__/*"
],
"exclude": [],
"extends": "@vue/tsconfig/tsconfig.dom.json",
"include": ["src/**/__tests__/*"],
"compilerOptions": {
"composite": true,
"noEmit": false,
"emitDeclarationOnly": true,
"outDir": "./node_modules/.tmp/vitest",
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.vitest.tsbuildinfo",

"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
},
"lib": [],
"types": ["node", "jsdom"]
},
Expand Down