Skip to content

Commit

Permalink
fix: make extension compatible with @quasar/app below v2.0.0
Browse files Browse the repository at this point in the history
Closes #26
  • Loading branch information
freddy38510 committed Oct 8, 2020
1 parent 30b183d commit e3a7ce4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/helpers/banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require('path')
const appRequire = require('./app-require')

module.exports.build = function (api, ctx, cmd, details) {
const { getBrowsersBanner } = appRequire('@quasar/app/lib/helpers/browsers-support', api.appDir)
const hasBrowsersSupportFile = require('./is-pkg-gte')(api, '@quasar/app', '2.0.0')
const quasarVersion = api.getPackageVersion('quasar')
const cliAppVersion = api.getPackageVersion('@quasar/app')

Expand Down Expand Up @@ -33,7 +33,8 @@ module.exports.build = function (api, ctx, cmd, details) {

console.log(banner + '\n')

if (!details) {
if (!details && hasBrowsersSupportFile) {
const { getBrowsersBanner } = appRequire('@quasar/app/lib/helpers/browsers-support', api.appDir)
console.log(getBrowsersBanner())
}
}
Expand Down

0 comments on commit e3a7ce4

Please sign in to comment.