Skip to content

Commit

Permalink
DO NOT MERGE debugging for get-zindex
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrozenberg committed Jul 15, 2021
1 parent a18901b commit 4806fe8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions build-system/tasks/get-zindex/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,19 +148,13 @@ function getZindexChainsInJs(glob, cwd = '.') {
return new Promise((resolve) => {
const files = globby.sync(glob, {cwd}).map((file) => path.join(cwd, file));

const filesIncludingString = getStdout(
['grep -irl "z-*index"', ...files].join(' ')
)
.trim()
.split('\n');

const result = {};

const {stderr, stdout} = jscodeshiftAsync([
'--dry',
'--no-babel',
`--transform=${__dirname}/jscodeshift/collect-zindex.js`,
...filesIncludingString,
...files,
]);

stderr.on('data', (data) => {
Expand Down

0 comments on commit 4806fe8

Please sign in to comment.