Skip to content

Commit ba1bbb4

Browse files
shota-kizawakazupon
authored andcommitted
fix: function in utils.ts (#165)
1 parent 751b340 commit ba1bbb4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/utils.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,8 @@ export function readSFC (target: string, ig: Ignore): SFCFileInfo[] {
152152
}
153153

154154
function resolveGlob (target: string) {
155-
const relativeTarget = path.relative(process.cwd(), target)
156155
// TODO: async implementation
157-
return glob.sync(`${relativeTarget}/**/*.vue`)
156+
return glob.sync(`${target}/**/*.vue`)
158157
}
159158

160159
export const DEFUALT_CONF = { provider: {}} as ProviderConfiguration
@@ -424,7 +423,7 @@ export function splitLocaleMessages (
424423

425424
export function readIgnoreFile (target: string, ignoreFileName: string): string[] {
426425
const ignoreFiles = glob.sync(`${target}/**/${ignoreFileName}`)
427-
console.log(`allignore ${ignoreFiles}`)
426+
console.log(`ignoreFiles ${ignoreFiles}`)
428427
const ignoreTargets = [] as string[]
429428
ignoreFiles.forEach(ignoreFile => {
430429
fs.readFileSync(ignoreFile, 'utf8')

0 commit comments

Comments
 (0)