diff --git a/lib/index.js b/lib/index.js index f606859..57e9220 100755 --- a/lib/index.js +++ b/lib/index.js @@ -9,7 +9,7 @@ const args = process.argv.slice(2) const argsProjectIndex = args.findIndex(arg => ['-p', '--project'].includes(arg)) // prettier-ignore const argsProjectValue = argsProjectIndex !== -1 ? args[argsProjectIndex + 1] : undefined // prettier-ignore -const files = args.filter(file => /\.(ts|tsx)$/.test(file)) +const files = args.filter(file => /\.(ts|tsx|js|jsx)$/.test(file)) if (files.length === 0) { process.exit(0) }