From 8ca32c31daf1b008c492f88f8068d8e6be374165 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Thu, 28 Feb 2019 15:58:20 +0800 Subject: [PATCH] feat: loosen the restriction of typescript version https://github.com/typescript-eslint/typescript-eslint/pull/184 @typescript-eslint/eslint-plugin has now loosen their requirement for peer dep. And users are now able to disable the warning by specifying `warnOnUnsupportedTypeScriptVersion` in `parserOptions`. So to ease maintenance burden, we should also loosen this restriction. --- packages/@vue/cli-plugin-typescript/generator/index.js | 2 +- packages/@vue/cli-plugin-typescript/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@vue/cli-plugin-typescript/generator/index.js b/packages/@vue/cli-plugin-typescript/generator/index.js index a021fd4230..ca591588a4 100644 --- a/packages/@vue/cli-plugin-typescript/generator/index.js +++ b/packages/@vue/cli-plugin-typescript/generator/index.js @@ -9,7 +9,7 @@ module.exports = (api, { api.extendPackage({ devDependencies: { - typescript: api.hasPlugin('eslint') ? '~3.2.2' : '^3.0.0' + typescript: '^3.2.1' } }) diff --git a/packages/@vue/cli-plugin-typescript/package.json b/packages/@vue/cli-plugin-typescript/package.json index 9957ed29f7..3eec69ba2f 100644 --- a/packages/@vue/cli-plugin-typescript/package.json +++ b/packages/@vue/cli-plugin-typescript/package.json @@ -38,7 +38,7 @@ "@types/chai": "^4.1.0", "@types/jest": "^23.1.4", "@types/mocha": "^5.2.6", - "typescript": "~3.2.2", + "typescript": "^3.2.1", "vue-class-component": "^6.2.0", "vue-property-decorator": "^7.0.0" }