Skip to content

Commit

Permalink
fix: require vue 3.3 as peer dependency
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
haoqunjiang committed Nov 10, 2024
1 parent 590d74c commit ad9bd77
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
TSConfigs for Vue projects to extend.

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).
Requires Vue.js >= 3.3.

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

Expand Down
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@
"access": "public"
},
"peerDependencies": {
"typescript": "5.x"
"typescript": "5.x",
"vue": "^3.3.0"
},
"peerDependenciesMeta": {
"typescript": {
"optional": true
},
"vue": {
"optional": true
}
}
}

0 comments on commit ad9bd77

Please sign in to comment.