madrun 9.2.0 → 9.3.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/ChangeLog +14 -0
- package/README.md +1 -4
- package/bin/madrun.mjs +5 -18
- package/lib/fix.mjs +3 -11
- package/lib/madrun.js +1 -4
- package/lib/wildcard.js +2 -2
- package/package.json +6 -6
- package/supported.json +1 -5
package/ChangeLog
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
2023.08.04, v9.3.1
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- 1a6e797 package: putout v31.0.0
|
|
5
|
+
|
|
6
|
+
2023.07.06, v9.3.0
|
|
7
|
+
|
|
8
|
+
feature:
|
|
9
|
+
- c72b896 package: eslint-plugin-putout v18.0.0
|
|
10
|
+
- 4d8d729 package: putout v30.0.2
|
|
11
|
+
- 8fc78af package: escover v3.4.0
|
|
12
|
+
- c607a04 package: c8 v8.0.0
|
|
13
|
+
- b14cab2 package: eslint-plugin-n v16.0.1
|
|
14
|
+
|
|
1
15
|
2023.05.01, v9.2.0
|
|
2
16
|
|
|
3
17
|
feature:
|
package/README.md
CHANGED
package/bin/madrun.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
|
|
2
3
|
import {createRequire} from 'module';
|
|
3
4
|
import {
|
|
4
5
|
dirname,
|
|
@@ -15,10 +16,7 @@ const require = createRequire(import.meta.url);
|
|
|
15
16
|
|
|
16
17
|
const {exit} = process;
|
|
17
18
|
|
|
18
|
-
const {
|
|
19
|
-
MADRUN_PWD,
|
|
20
|
-
MADRUN_NAME,
|
|
21
|
-
} = process.env;
|
|
19
|
+
const {MADRUN_PWD, MADRUN_NAME} = process.env;
|
|
22
20
|
|
|
23
21
|
const cwd = process.cwd();
|
|
24
22
|
|
|
@@ -59,10 +57,7 @@ if (version) {
|
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
if (init) {
|
|
62
|
-
const {
|
|
63
|
-
createMadrun,
|
|
64
|
-
patchPackage,
|
|
65
|
-
} = await import('./init.mjs');
|
|
60
|
+
const {createMadrun, patchPackage} = await import('./init.mjs');
|
|
66
61
|
|
|
67
62
|
fix = true;
|
|
68
63
|
|
|
@@ -180,17 +175,9 @@ async function getScript() {
|
|
|
180
175
|
async function putoutMadrun(dir, {fix}) {
|
|
181
176
|
const name = `${dir}/.madrun.js`;
|
|
182
177
|
const {runPutout} = await import('../lib/fix.mjs');
|
|
183
|
-
|
|
184
|
-
const {
|
|
185
|
-
readFile,
|
|
186
|
-
writeFile,
|
|
187
|
-
} = await import('fs/promises');
|
|
188
|
-
|
|
178
|
+
const {readFile, writeFile} = await import('fs/promises');
|
|
189
179
|
const data = await readFile(name, 'utf8');
|
|
190
|
-
const {
|
|
191
|
-
places,
|
|
192
|
-
code,
|
|
193
|
-
} = await runPutout(data);
|
|
180
|
+
const {places, code} = await runPutout(data);
|
|
194
181
|
|
|
195
182
|
if (fix)
|
|
196
183
|
await writeFile(name, code);
|
package/lib/fix.mjs
CHANGED
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
import putout, {
|
|
2
|
-
initReport,
|
|
3
|
-
} from 'putout';
|
|
1
|
+
import putout, {initReport} from 'putout';
|
|
4
2
|
import dumpFormatter from '@putout/formatter-dump';
|
|
5
3
|
|
|
6
4
|
const report = initReport();
|
|
7
5
|
|
|
8
6
|
export const runPutout = async (data, options) => {
|
|
9
|
-
const {
|
|
10
|
-
code,
|
|
11
|
-
places,
|
|
12
|
-
} = putout(data, {
|
|
7
|
+
const {code, places} = putout(data, {
|
|
13
8
|
printer: 'putout',
|
|
14
9
|
...options,
|
|
15
|
-
plugins: [
|
|
16
|
-
'madrun',
|
|
17
|
-
],
|
|
10
|
+
plugins: ['madrun'],
|
|
18
11
|
});
|
|
19
12
|
|
|
20
13
|
return {
|
|
@@ -25,4 +18,3 @@ export const runPutout = async (data, options) => {
|
|
|
25
18
|
}),
|
|
26
19
|
};
|
|
27
20
|
};
|
|
28
|
-
|
package/lib/madrun.js
CHANGED
|
@@ -140,10 +140,7 @@ const parse = async (name, {scripts, opts, env, isParallel, cutEnv}) => {
|
|
|
140
140
|
|
|
141
141
|
const fn = jessy(key, scripts);
|
|
142
142
|
|
|
143
|
-
const {
|
|
144
|
-
line,
|
|
145
|
-
lineEnv,
|
|
146
|
-
} = await runScriptFn(fn);
|
|
143
|
+
const {line, lineEnv} = await runScriptFn(fn);
|
|
147
144
|
|
|
148
145
|
const cmd = addOpts(line, opts);
|
|
149
146
|
|
package/lib/wildcard.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "madrun",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.3.1",
|
|
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",
|
|
@@ -62,18 +62,18 @@
|
|
|
62
62
|
"mapsome": "^1.0.0",
|
|
63
63
|
"montag": "^1.0.0",
|
|
64
64
|
"once": "^1.4.0",
|
|
65
|
-
"putout": "^
|
|
65
|
+
"putout": "^31.0.0",
|
|
66
66
|
"try-catch": "^3.0.0",
|
|
67
67
|
"try-to-catch": "^3.0.0",
|
|
68
68
|
"yargs-parser": "^21.0.0"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@putout/formatter-json": "^2.0.0",
|
|
72
|
-
"c8": "^
|
|
73
|
-
"escover": "^
|
|
72
|
+
"c8": "^8.0.0",
|
|
73
|
+
"escover": "^3.4.0",
|
|
74
74
|
"eslint": "^8.0.0",
|
|
75
|
-
"eslint-plugin-n": "^
|
|
76
|
-
"eslint-plugin-putout": "^
|
|
75
|
+
"eslint-plugin-n": "^16.0.1",
|
|
76
|
+
"eslint-plugin-putout": "^18.0.0",
|
|
77
77
|
"mock-import": "^3.0.0",
|
|
78
78
|
"mock-require": "^3.0.3",
|
|
79
79
|
"nodemon": "^2.0.0",
|
package/supported.json
CHANGED