Skip to content

Commit 393cb1e

Browse files
committed
rollback
1 parent e428f2c commit 393cb1e

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

src/core/options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ export function resolveOptions(options: Options, root: string): ResolvedOptions
6363
i = i.slice(1)
6464
}
6565
return resolved.deep
66-
? prefix + (join(slash(i), slash(`**/*.${extsGlob}`)))
67-
: prefix + (join(slash(i), slash(`*.${extsGlob}`)))
66+
? prefix + slash(join((i), `**/*.${extsGlob}`))
67+
: prefix + slash(join((i), `*.${extsGlob}`))
6868
})
6969

7070
if (!resolved.extensions.length)

test/__snapshots__/search.test.ts.snap

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,6 @@ exports[`search > should with namespace 1`] = `
123123
`;
124124

125125
exports[`search > should work 1`] = `
126-
[
127-
"D:/a/unplugin-vue-components/unplugin-vue-components/examples/vite-vue3/src/components/**/*.vue",
128-
]
129-
`;
130-
131-
exports[`search > should work 2`] = `
132126
[
133127
{
134128
"as": "Avatar",

test/search.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ describe('search', () => {
1818
ctx.setRoot(root)
1919
ctx.searchGlob()
2020

21-
expect(ctx.options.globs).toMatchSnapshot()
2221
expect(cleanup(ctx.componentNameMap)).toMatchSnapshot()
2322
})
2423

0 commit comments

Comments
 (0)