madrun 8.8.12 → 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 CHANGED
@@ -1,3 +1,12 @@
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
+
1
10
  2021.11.10, v8.8.12
2
11
 
3
12
  feature:
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.8.12",
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": "^10.0.0",
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": "^22.0.0",
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": "^20.0.0"
69
+ "yargs-parser": "^21.0.0"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@cloudcmd/stub": "^3.1.0",
@@ -74,7 +74,7 @@
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": "^11.0.0",
77
+ "eslint-plugin-putout": "^12.2.0",
78
78
  "mock-import": "^2.1.1",
79
79
  "mock-require": "^3.0.3",
80
80
  "nodemon": "^2.0.0",