Skip to content

Commit ef435ce

Browse files
authored
fix: function in utils.ts (#165)
1 parent 312b665 commit ef435ce

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
@@ -159,9 +159,8 @@ export function readSFC (target: string, ig: Ignore): SFCFileInfo[] {
159159
}
160160

161161
function resolveGlob (target: string) {
162-
const relativeTarget = path.relative(process.cwd(), target)
163162
// TODO: async implementation
164-
return glob.sync(`${relativeTarget}/**/*.vue`)
163+
return glob.sync(`${target}/**/*.vue`)
165164
}
166165

167166
export const DEFUALT_CONF = { provider: {}} as ProviderConfiguration
@@ -431,7 +430,7 @@ export function splitLocaleMessages (
431430

432431
export function readIgnoreFile (target: string, ignoreFileName: string): string[] {
433432
const ignoreFiles = glob.sync(`${target}/**/${ignoreFileName}`)
434-
console.log(`allignore ${ignoreFiles}`)
433+
console.log(`ignoreFiles ${ignoreFiles}`)
435434
const ignoreTargets = [] as string[]
436435
ignoreFiles.forEach(ignoreFile => {
437436
fs.readFileSync(ignoreFile, 'utf8')

0 commit comments

Comments
 (0)