madrun 9.3.1 → 9.4.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 CHANGED
@@ -1,3 +1,16 @@
1
+ 2023.11.09, v9.4.1
2
+
3
+ feature:
4
+ - fa8bb68 madrun: putout v33.0.0
5
+ - 082fe61 madrun: eslint-plugin-putout v21.0.1
6
+
7
+ 2023.09.14, v9.4.0
8
+
9
+ feature:
10
+ - c59a259 package: nodemon v3.0.1
11
+ - 3de8b2a package: putout v32.0.0
12
+ - 512a28f package: eslint-plugin-putout v19.0.0
13
+
1
14
  2023.08.04, v9.3.1
2
15
 
3
16
  feature:
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
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  'use strict';
4
4
 
5
+ const process = require('process');
5
6
  const fs = require('fs');
6
7
  const path = require('path');
7
8
 
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 (typeof fn !== 'function')
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.1",
3
+ "version": "9.4.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,7 +62,7 @@
62
62
  "mapsome": "^1.0.0",
63
63
  "montag": "^1.0.0",
64
64
  "once": "^1.4.0",
65
- "putout": "^31.0.0",
65
+ "putout": "^33.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": "^18.0.0",
76
+ "eslint-plugin-putout": "^21.0.1",
77
77
  "mock-import": "^3.0.0",
78
78
  "mock-require": "^3.0.3",
79
- "nodemon": "^2.0.0",
79
+ "nodemon": "^3.0.1",
80
80
  "nyc": "^15.0.0",
81
81
  "runsome": "^1.0.0",
82
82
  "supertape": "^8.1.0"