Skip to content

Commit

Permalink
feat: revert read gitignore (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
vagusX authored Mar 30, 2020
1 parent c020dad commit 89d3cb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ async function transform(transformer, parser, filePath, options) {
const transformerPath = path.join(transformersDir, `${transformer}.js`);

// pass closet .gitignore to jscodeshift as extra `--ignore-file` option
const gitignorePath = await findGitIgnore(filePath);
// const gitignorePath = await findGitIgnore(filePath);

const args = [filePath].concat(
getRunnerArgs(transformerPath, parser, {
...options,
gitignore: gitignorePath,
// gitignore: gitignorePath,
}),
);

Expand Down
1 change: 1 addition & 0 deletions bin/codemod.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ node_modules
*.less
*.sass
*.scss
.umi

0 comments on commit 89d3cb8

Please sign in to comment.