@putout/engine-runner 20.4.0 → 21.0.0
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/README.md +3 -3
- package/lib/scanner/index.js +2 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @putout/engine-runner [![NPM version][NPMIMGURL]][NPMURL]
|
|
2
2
|
|
|
3
3
|
[NPMIMGURL]: https://img.shields.io/npm/v/@putout/engine-runner.svg?style=flat&longCache=true
|
|
4
|
-
[NPMURL]: https://npmjs.org/package/@putout/engine-runner"npm"
|
|
4
|
+
[NPMURL]: https://npmjs.org/package/@putout/engine-runner "npm"
|
|
5
5
|
|
|
6
6
|
Run 🐊[**Putout**](https://github.com/coderaiser/putout) plugins.
|
|
7
7
|
|
|
@@ -239,7 +239,7 @@ export const fix = (rootPath) => {
|
|
|
239
239
|
createFile(rootPath, 'hello.txt', 'hello world');
|
|
240
240
|
};
|
|
241
241
|
|
|
242
|
-
export const scan = (rootPath) => {
|
|
242
|
+
export const scan = (rootPath, {progress}) => {
|
|
243
243
|
const [filePath] = findFile(rootPath, 'hello.txt');
|
|
244
244
|
|
|
245
245
|
if (filePath)
|
|
@@ -254,7 +254,7 @@ export const scan = (rootPath) => {
|
|
|
254
254
|
};
|
|
255
255
|
```
|
|
256
256
|
|
|
257
|
-
Or better `trackFile`:
|
|
257
|
+
Or better `trackFile`, which does the same, but also count `progress`:
|
|
258
258
|
|
|
259
259
|
```js
|
|
260
260
|
export const report = () => 'Add file';
|
package/lib/scanner/index.js
CHANGED
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
const fullstore = require('fullstore');
|
|
4
4
|
const {compare} = require('@putout/compare');
|
|
5
5
|
const {__filesystem_name} = require('@putout/operator-json');
|
|
6
|
+
|
|
6
7
|
const {
|
|
7
8
|
findFile,
|
|
8
9
|
pause,
|
|
9
10
|
start,
|
|
10
11
|
} = require('@putout/operator-filesystem');
|
|
12
|
+
|
|
11
13
|
const log = require('debug')('putout:runner:scanner');
|
|
12
14
|
|
|
13
15
|
const fromSimple = require('@putout/plugin-filesystem/from-simple');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/engine-runner",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.0.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "Run 🐊Putout plugins",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"@putout/engine-parser": "^10.0.0",
|
|
34
34
|
"@putout/operate": "^12.0.0",
|
|
35
35
|
"@putout/operator-declare": "^9.0.0",
|
|
36
|
-
"@putout/operator-filesystem": "^
|
|
37
|
-
"@putout/operator-json": "^
|
|
36
|
+
"@putout/operator-filesystem": "^4.0.0",
|
|
37
|
+
"@putout/operator-json": "^2.0.0",
|
|
38
38
|
"@putout/plugin-filesystem": "^3.0.0",
|
|
39
39
|
"debug": "^4.1.1",
|
|
40
40
|
"fullstore": "^3.0.0",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
],
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@putout/plugin-minify": "*",
|
|
53
|
-
"c8": "^
|
|
54
|
-
"eslint": "^
|
|
55
|
-
"eslint-plugin-n": "^
|
|
53
|
+
"c8": "^9.0.0",
|
|
54
|
+
"eslint": "^9.0.0-alpha.0",
|
|
55
|
+
"eslint-plugin-n": "^17.0.0-0",
|
|
56
56
|
"eslint-plugin-putout": "^22.0.0",
|
|
57
57
|
"just-camel-case": "^4.0.2",
|
|
58
58
|
"lerna": "^6.0.1",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"montag": "^1.0.0",
|
|
62
62
|
"nodemon": "^3.0.1",
|
|
63
63
|
"putout": "*",
|
|
64
|
-
"supertape": "^
|
|
64
|
+
"supertape": "^10.0.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"putout": "*"
|