madrun 8.8.9 → 8.9.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/ChangeLog +30 -0
- package/README.md +1 -3
- package/bin/madrun.mjs +1 -1
- package/lib/fix.mjs +3 -2
- package/package.json +6 -6
package/ChangeLog
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
|
+
2021.12.21, v8.9.0
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- (package) putout v23.0.0
|
|
5
|
+
- (package) yargs-parser v21.0.0
|
|
6
|
+
- (package) @putout/plugin-madrun v11.0.0
|
|
7
|
+
- (package) eslint-plugin-putout v12.2.0
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
2021.11.10, v8.8.12
|
|
11
|
+
|
|
12
|
+
feature:
|
|
13
|
+
- (package) putout v22.0.0
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
2021.10.31, v8.8.11
|
|
17
|
+
|
|
18
|
+
feature:
|
|
19
|
+
- (package) eslint-plugin-putout v11.0.0
|
|
20
|
+
- (package) putout v21.0.0
|
|
21
|
+
- (package) mock-import v2.1.1
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
2021.09.12, v8.8.10
|
|
25
|
+
|
|
26
|
+
feature:
|
|
27
|
+
- (package) putout v20.0.0
|
|
28
|
+
- (package) eslint-plugin-putout v10.0.0
|
|
29
|
+
|
|
30
|
+
|
|
1
31
|
2021.09.09, v8.8.9
|
|
2
32
|
|
|
3
33
|
fix:
|
package/README.md
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
# Madrun [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![
|
|
1
|
+
# Madrun [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]
|
|
2
2
|
|
|
3
3
|
[NPMURL]: https://npmjs.org/package/madrun "npm"
|
|
4
4
|
[NPMIMGURL]: https://img.shields.io/npm/v/madrun.svg?style=flat
|
|
5
5
|
[BuildStatusURL]: https://github.com/coderaiser/madrun/actions?query=workflow%3A%22Node+CI%22 "Build Status"
|
|
6
6
|
[BuildStatusIMGURL]: https://github.com/coderaiser/madrun/workflows/Node%20CI/badge.svg
|
|
7
|
-
[DependencyStatusURL]: https://david-dm.org/coderaiser/madrun "Dependency Status"
|
|
8
|
-
[DependencyStatusIMGURL]: https://img.shields.io/david/coderaiser/madrun.svg?style=flat
|
|
9
7
|
[LicenseURL]: https://tldrlegal.com/license/mit-license "MIT License"
|
|
10
8
|
[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat
|
|
11
9
|
[CoverageURL]: https://coveralls.io/github/coderaiser/madrun?branch=master
|
package/bin/madrun.mjs
CHANGED
|
@@ -177,7 +177,7 @@ async function putoutMadrun(dir, {fix}) {
|
|
|
177
177
|
} = await import('fs/promises');
|
|
178
178
|
|
|
179
179
|
const data = await readFile(name, 'utf8');
|
|
180
|
-
const {places, code} = runPutout(data);
|
|
180
|
+
const {places, code} = await runPutout(data);
|
|
181
181
|
|
|
182
182
|
if (fix)
|
|
183
183
|
await writeFile(name, code);
|
package/lib/fix.mjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import putout, {
|
|
2
2
|
initReport,
|
|
3
3
|
} from 'putout';
|
|
4
|
+
|
|
4
5
|
import dumpFormatter from '@putout/formatter-dump';
|
|
5
6
|
import madrun from '@putout/plugin-madrun';
|
|
6
7
|
|
|
7
8
|
const report = initReport();
|
|
8
9
|
|
|
9
|
-
export const runPutout = (data, options) => {
|
|
10
|
+
export const runPutout = async (data, options) => {
|
|
10
11
|
const {code, places} = putout(data, {
|
|
11
12
|
...options,
|
|
12
13
|
plugins: [{
|
|
@@ -16,7 +17,7 @@ export const runPutout = (data, options) => {
|
|
|
16
17
|
|
|
17
18
|
return {
|
|
18
19
|
code,
|
|
19
|
-
places: report(dumpFormatter, {
|
|
20
|
+
places: await report(dumpFormatter, {
|
|
20
21
|
name: '.madrun.js',
|
|
21
22
|
places,
|
|
22
23
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "madrun",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.9.0",
|
|
4
4
|
"description": "CLI tool to run multiple npm-scripts in a madly comfortable way",
|
|
5
5
|
"main": "lib/madrun.js",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -55,18 +55,18 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@putout/formatter-dump": "^2.0.1",
|
|
58
|
-
"@putout/plugin-madrun": "^
|
|
58
|
+
"@putout/plugin-madrun": "^11.0.0",
|
|
59
59
|
"all-object-keys": "^2.0.0",
|
|
60
60
|
"find-up": "^5.0.0",
|
|
61
61
|
"jessy": "^3.0.0",
|
|
62
62
|
"mapsome": "^1.0.0",
|
|
63
63
|
"montag": "^1.0.0",
|
|
64
64
|
"once": "^1.4.0",
|
|
65
|
-
"putout": "^
|
|
65
|
+
"putout": "^23.0.0",
|
|
66
66
|
"simport": "^1.0.3",
|
|
67
67
|
"try-catch": "^3.0.0",
|
|
68
68
|
"try-to-catch": "^3.0.0",
|
|
69
|
-
"yargs-parser": "^
|
|
69
|
+
"yargs-parser": "^21.0.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@cloudcmd/stub": "^3.1.0",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"c8": "^7.3.5",
|
|
75
75
|
"eslint": "^8.0.0-beta.1",
|
|
76
76
|
"eslint-plugin-node": "^11.0.0",
|
|
77
|
-
"eslint-plugin-putout": "^
|
|
78
|
-
"mock-import": "^1.
|
|
77
|
+
"eslint-plugin-putout": "^12.2.0",
|
|
78
|
+
"mock-import": "^2.1.1",
|
|
79
79
|
"mock-require": "^3.0.3",
|
|
80
80
|
"nodemon": "^2.0.0",
|
|
81
81
|
"nyc": "^15.0.0",
|