From fec160ff964964bc71aa857d21d0614284fa2fdb Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Wed, 16 Oct 2019 20:31:18 +0800 Subject: [PATCH] fix: no need to assertCliVersion. avoid breaking old versions --- packages/@vue/cli-plugin-eslint/generator/index.js | 3 --- packages/@vue/cli-plugin-router/generator/index.js | 3 --- packages/@vue/cli-plugin-vuex/generator/index.js | 3 --- 3 files changed, 9 deletions(-) diff --git a/packages/@vue/cli-plugin-eslint/generator/index.js b/packages/@vue/cli-plugin-eslint/generator/index.js index 21b93a72f9..b5aa03d342 100644 --- a/packages/@vue/cli-plugin-eslint/generator/index.js +++ b/packages/@vue/cli-plugin-eslint/generator/index.js @@ -2,9 +2,6 @@ const fs = require('fs') const path = require('path') module.exports = (api, { config, lintOn = [] }, _, invoking) => { - api.assertCliVersion('^4.0.0-alpha.4') - api.assertCliServiceVersion('^4.0.0-alpha.4') - if (typeof lintOn === 'string') { lintOn = lintOn.split(',') } diff --git a/packages/@vue/cli-plugin-router/generator/index.js b/packages/@vue/cli-plugin-router/generator/index.js index db0403889c..89b3eb5c84 100644 --- a/packages/@vue/cli-plugin-router/generator/index.js +++ b/packages/@vue/cli-plugin-router/generator/index.js @@ -1,7 +1,4 @@ module.exports = (api, options = {}) => { - api.assertCliVersion('^4.0.0-alpha.3') - api.assertCliServiceVersion('^4.0.0-alpha.3') - api.injectImports(api.entryFile, `import router from './router'`) api.injectRootOptions(api.entryFile, `router`) diff --git a/packages/@vue/cli-plugin-vuex/generator/index.js b/packages/@vue/cli-plugin-vuex/generator/index.js index 5aa8358cbd..7c5965e5ce 100644 --- a/packages/@vue/cli-plugin-vuex/generator/index.js +++ b/packages/@vue/cli-plugin-vuex/generator/index.js @@ -1,7 +1,4 @@ module.exports = (api, options = {}) => { - api.assertCliVersion('^4.0.0-alpha.3') - api.assertCliServiceVersion('^4.0.0-alpha.3') - api.injectImports(api.entryFile, `import store from './store'`) api.injectRootOptions(api.entryFile, `store`)