Skip to content

Commit

Permalink
fix: ast parsing skip dist
Browse files Browse the repository at this point in the history
  • Loading branch information
yosion-p committed Jul 23, 2021
1 parent 2832bb9 commit 71bc5ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ast-parse/astParse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ export async function astParseRoot (rootDir: string, config: Config): Promise<As
cliInstance.setTotal(cliInstance.total + resolvedPaths.length)
resolvedPaths.forEach(async filePath => {
cliInstance.increment({ doSomething: `AST Parsing: ${filePath}` })
// skip files in node_modules
if (filePath.indexOf('/node_modules/') >= 0) {
// skip some files
if (filePath.indexOf('/node_modules/') >= 0 || filePath.indexOf('/dist/') >= 0) {
return
}

Expand Down

0 comments on commit 71bc5ac

Please sign in to comment.