From bd3fe148f240fbba8310e312ac3ad6aae0eb9522 Mon Sep 17 00:00:00 2001 From: Reza Rahman Date: Fri, 27 May 2022 15:22:07 +0100 Subject: [PATCH] add support for markdown files --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 55eb0a5..3d866fd 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ const project = createProject(); const args = require('yargs-parser')(process.argv.slice(2)); const srcPath = args._[0] || 'src'; -const globPath = resolve(srcPath + '/**/*.{tsx,ts,jsx,js}'); +const globPath = resolve(srcPath + '/**/*.{tsx,ts,jsx,js,mdx,md}'); project.addSourceFilesAtPaths(globPath); console.log(`${project.getSourceFiles().length} files found at ${globPath} \n`);