vue-i18n-locale-message
vue-i18n-locale-message copied to clipboard
CLI target option set to `.` will cause an error
$ npx vue-i18n-locale-message squeeze --target=. --output=./translated.json
npx: installed 71 in 6.32s
Cannot read property 'split' of undefined
I suppose this is caused by this line: https://github.com/kazupon/vue-i18n-locale-message/blob/7f2e0af4dea7710788bb8bd81b573cb60c8bbccd/src/utils.ts#L42
While path.parse('.')
returns { ..., dir: '' }
which causes target
become undefined
PS. using Windows here
Thanks! feedback!