Skip to content

Commit

Permalink
fix: no need to assertCliVersion. avoid breaking old versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sodatea committed Oct 16, 2019
1 parent 81f8457 commit fec160f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions packages/@vue/cli-plugin-eslint/generator/index.js
Expand Up @@ -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(',')
}
Expand Down
3 changes: 0 additions & 3 deletions 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`)

Expand Down
3 changes: 0 additions & 3 deletions 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`)

Expand Down

0 comments on commit fec160f

Please sign in to comment.