@putout/engine-runner 12.4.0 → 12.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -137,11 +137,15 @@ function splitPlugins(plugins, {template}) {
137
137
  for (const item of plugins) {
138
138
  const {plugin} = item;
139
139
 
140
- if (plugin.find)
140
+ if (plugin.find) {
141
141
  pluginsFind.push(item);
142
+ continue;
143
+ }
142
144
 
143
- if (plugin.traverse)
145
+ if (plugin.traverse) {
144
146
  pluginsTraverse.push(item);
147
+ continue;
148
+ }
145
149
 
146
150
  if (plugin.replace) {
147
151
  pluginsTraverse.push(include(replace(item, {
@@ -112,7 +112,6 @@ const fix = (from, to, path) => {
112
112
 
113
113
  mark.add();
114
114
  path.scope.getBlockParent().crawl();
115
- //path.scope.getProgramParent().crawl();
116
115
 
117
116
  log(from, newPath);
118
117
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/engine-runner",
3
- "version": "12.4.0",
3
+ "version": "12.4.1",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "run putout plugins",