Skip to content

Commit ad9bd77

Browse files
committed
fix: require vue 3.3 as peer dependency
Because `jsxImportSource: "vue"` is only available in Vue 3.3 and above: <https://blog.vuejs.org/posts/vue-3-3#jsx-import-source-support> I also made both `vue` and `typescript` optional peer dependencies, in case the configuration is not used to *run* or *type-check* a vue project, but only to *transpile* some source code. Closes #17, as we never intended to support Vue 2.x in the first place, even it works in some earlier versions, the configuration might not be optimal for Vue 2.x projects.
1 parent 590d74c commit ad9bd77

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
TSConfigs for Vue projects to extend.
44

55
Requires TypeScript >= 5.0. For TypeScript v4.5 to v4.9, please use [v0.1.x](https://www.npmjs.com/package/@vue/tsconfig/v/0.1.3).
6+
Requires Vue.js >= 3.3.
67

78
[See below for the breaking changes in v0.3.x.](#migrating-from-typescript--50)
89

package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@
2424
"access": "public"
2525
},
2626
"peerDependencies": {
27-
"typescript": "5.x"
27+
"typescript": "5.x",
28+
"vue": "^3.3.0"
29+
},
30+
"peerDependenciesMeta": {
31+
"typescript": {
32+
"optional": true
33+
},
34+
"vue": {
35+
"optional": true
36+
}
2837
}
2938
}

0 commit comments

Comments
 (0)