import YearRange from './src/index'
import { version } from './package.json'

/* istanbul ignore next */
YearRange.install = function (Vue) {
  Vue.component(YearRange.name, YearRange)
}

YearRange.version = version

/* istanbul ignore next */
if (process.env.BUILD_TARGET === 'runtime') {
  if (typeof window !== 'undefined' && window.Vue) {
    YearRange.install(window.Vue)
  }
}

export default YearRange
