-
Notifications
You must be signed in to change notification settings - Fork 434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat project references #549
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,3 +106,7 @@ dist | |
|
||
# TernJS port file | ||
.tern-port | ||
|
||
# IDEs | ||
.vscode | ||
.idea |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
{ | ||
"extends": "./tsconfig.app.json", | ||
"include": [ | ||
"env.d.ts", | ||
"src/**/*", | ||
"src/**/*.vue", | ||
"src/**/__tests__/*", | ||
"cypress/support/component.*", | ||
"cypress/support/commands.ts" | ||
], | ||
"exclude": [], | ||
"compilerOptions": { | ||
"composite": true, | ||
"outDir": "./node_modules/.tmp/cypress-ct", | ||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.cypress-ct.tsbuildinfo" | ||
} | ||
}, | ||
"references": [ | ||
{ "path": "./tsconfig.app.json" } | ||
] | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
{ | ||
"extends": "./tsconfig.app.json", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I kept this extending the app config, but maybe it's better to make it extend @vue/tsconfig/tsconfig.dom.json directly? That's how I've set it up in my project, makes it easier to manage. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I'd argue it's better to keep production and test configs separate (and rather have them extend a common base config), so that people won't e.g. add types to |
||
"include": [ | ||
"src/**/__tests__/*" | ||
], | ||
"exclude": [], | ||
"compilerOptions": { | ||
"composite": true, | ||
"outDir": "./node_modules/.tmp/vitest", | ||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.vitest.tsbuildinfo", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Same thing goes for |
||
|
||
"lib": [], | ||
"types": ["node", "jsdom"] | ||
} | ||
}, | ||
"references": [ | ||
{ "path": "./tsconfig.app.json" } | ||
] | ||
} |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)