We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21485f3 commit d614bc8Copy full SHA for d614bc8
src/index.ts
@@ -26,8 +26,7 @@ let macro = await select({
26
{ value: 'short-v-model' },
27
{ value: 'define-slots' },
28
],
29
-},
30
-)
+})
31
32
let render
33
if (macro === 'jsx-directive') {
@@ -56,8 +55,8 @@ if (macro === 'short-v-model') {
56
55
}
57
58
const targetDirectory = path.resolve(argv._.at(-1) || '.')
59
-
60
-const files = await glob(`${targetDirectory}/**/*.vue`, {
+const filename = path.basename(targetDirectory)
+const files = await glob(`${targetDirectory}${filename ? '' : '/**/*.vue'}`, {
61
ignore: [
62
'**/node_modules/**',
63
argv.ignore,
0 commit comments