Skip to content

Commit c44357c

Browse files
author
Tonye Jack
committed
fixed matching files.
1 parent 4e842ac commit c44357c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/graphql-codegen-hook.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ const argv = require('yargs')
2424
},
2525
)
2626
.command(
27-
'$0 [options] [filenames..]',
27+
'$0 [filenames..]',
2828
'Runs graphql-codegen based on changes to ts(x)/js(x) files',
2929
)
3030
.help()
3131
.argv;
3232

3333
const { filenames = [], verbose = false } = argv;
3434
const fileMatches = filenames.filter(
35-
minimatch.filter("*.+(tsx|jsx|js|ts)", { matchBase: true }),
35+
minimatch.filter("*.+(tsx|jsx|js|ts)", { matchBase: false }),
3636
);
3737
const shouldExecute = fileMatches.length > 0;
3838

@@ -43,7 +43,7 @@ if (!shouldExecute) {
4343
return 0;
4444
} else {
4545
if (verbose) {
46-
shell.echo(`Matching files found: ${fileMatches.join(', ')}`);
46+
shell.echo(`Matching files found: ${fileMatches.join(", ")}`);
4747
}
4848
const basePath = shell.pwd().toString();
4949

0 commit comments

Comments
 (0)