madrun 9.3.1 → 9.4.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 +7 -0
- package/bin/init.mjs +3 -3
- package/bin/madrun-completion.js +1 -0
- package/bin/madrun.mjs +3 -2
- package/lib/check.js +2 -1
- package/package.json +4 -4
package/ChangeLog
CHANGED
package/bin/init.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {createRequire} from 'module';
|
|
2
|
-
import {join} from 'path';
|
|
1
|
+
import {createRequire} from 'node:module';
|
|
2
|
+
import {join} from 'node:path';
|
|
3
3
|
import {
|
|
4
4
|
writeFile,
|
|
5
5
|
access,
|
|
6
|
-
} from 'fs/promises';
|
|
6
|
+
} from 'node:fs/promises';
|
|
7
7
|
import tryToCatch from 'try-to-catch';
|
|
8
8
|
import montag from 'montag';
|
|
9
9
|
|
package/bin/madrun-completion.js
CHANGED
package/bin/madrun.mjs
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {createRequire} from 'module';
|
|
3
|
+
import {createRequire} from 'node:module';
|
|
4
4
|
import {
|
|
5
5
|
dirname,
|
|
6
6
|
basename,
|
|
7
|
-
} from 'path';
|
|
7
|
+
} from 'node:path';
|
|
8
8
|
import findUp from 'find-up';
|
|
9
9
|
import tryToCatch from 'try-to-catch';
|
|
10
10
|
import yargsParser from 'yargs-parser';
|
|
11
|
+
import process from 'node:process';
|
|
11
12
|
import {series} from '../lib/madrun.js';
|
|
12
13
|
import check from '../lib/check.js';
|
|
13
14
|
import {choose} from '../lib/choose.mjs';
|
package/lib/check.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const keys = require('all-object-keys');
|
|
4
4
|
const jessy = require('jessy');
|
|
5
|
+
const isFn = (a) => typeof a === 'function';
|
|
5
6
|
|
|
6
7
|
module.exports = (scripts) => {
|
|
7
8
|
const problems = getNames(scripts);
|
|
@@ -19,7 +20,7 @@ function getNames(scripts) {
|
|
|
19
20
|
for (const key of all) {
|
|
20
21
|
const fn = jessy(key, scripts);
|
|
21
22
|
|
|
22
|
-
if (
|
|
23
|
+
if (!isFn(fn))
|
|
23
24
|
result.push(key);
|
|
24
25
|
}
|
|
25
26
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "madrun",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.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",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"mapsome": "^1.0.0",
|
|
63
63
|
"montag": "^1.0.0",
|
|
64
64
|
"once": "^1.4.0",
|
|
65
|
-
"putout": "^
|
|
65
|
+
"putout": "^32.0.0",
|
|
66
66
|
"try-catch": "^3.0.0",
|
|
67
67
|
"try-to-catch": "^3.0.0",
|
|
68
68
|
"yargs-parser": "^21.0.0"
|
|
@@ -73,10 +73,10 @@
|
|
|
73
73
|
"escover": "^3.4.0",
|
|
74
74
|
"eslint": "^8.0.0",
|
|
75
75
|
"eslint-plugin-n": "^16.0.1",
|
|
76
|
-
"eslint-plugin-putout": "^
|
|
76
|
+
"eslint-plugin-putout": "^19.0.0",
|
|
77
77
|
"mock-import": "^3.0.0",
|
|
78
78
|
"mock-require": "^3.0.3",
|
|
79
|
-
"nodemon": "^
|
|
79
|
+
"nodemon": "^3.0.1",
|
|
80
80
|
"nyc": "^15.0.0",
|
|
81
81
|
"runsome": "^1.0.0",
|
|
82
82
|
"supertape": "^8.1.0"
|