supertape 12.0.1 → 12.0.2
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 +5 -0
- package/lib/cli.js +15 -5
- package/package.json +1 -1
package/ChangeLog
CHANGED
package/lib/cli.js
CHANGED
|
@@ -5,11 +5,12 @@ const {resolve: resolvePath} = require('node:path');
|
|
|
5
5
|
const {once} = require('node:events');
|
|
6
6
|
const {pathToFileURL} = require('node:url');
|
|
7
7
|
|
|
8
|
-
const glob = require('glob');
|
|
9
8
|
const fullstore = require('fullstore');
|
|
10
9
|
const {tryToCatch} = require('try-to-catch');
|
|
11
10
|
const {keypress: _keypress} = require('@putout/cli-keypress');
|
|
12
11
|
|
|
12
|
+
const {sync: _globSync} = require('glob');
|
|
13
|
+
|
|
13
14
|
const {parseArgs, yargsOptions} = require('./cli/parse-args');
|
|
14
15
|
|
|
15
16
|
const _supertape = require('..');
|
|
@@ -41,6 +42,7 @@ module.exports = async (overrides = {}) => {
|
|
|
41
42
|
workerFormatter,
|
|
42
43
|
keypress = _keypress,
|
|
43
44
|
supertape = _supertape,
|
|
45
|
+
globSync = _globSync,
|
|
44
46
|
} = overrides;
|
|
45
47
|
|
|
46
48
|
const isStop = overrides.isStop || keypress().isStop;
|
|
@@ -53,6 +55,7 @@ module.exports = async (overrides = {}) => {
|
|
|
53
55
|
exit,
|
|
54
56
|
isStop,
|
|
55
57
|
workerFormatter,
|
|
58
|
+
globSync,
|
|
56
59
|
});
|
|
57
60
|
|
|
58
61
|
if (error) {
|
|
@@ -84,7 +87,16 @@ module.exports = async (overrides = {}) => {
|
|
|
84
87
|
return exit(OK);
|
|
85
88
|
};
|
|
86
89
|
|
|
87
|
-
async function cli(
|
|
90
|
+
async function cli(overrides) {
|
|
91
|
+
const {
|
|
92
|
+
argv,
|
|
93
|
+
cwd,
|
|
94
|
+
stdout,
|
|
95
|
+
isStop,
|
|
96
|
+
workerFormatter,
|
|
97
|
+
supertape,
|
|
98
|
+
globSync,
|
|
99
|
+
} = overrides;
|
|
88
100
|
const args = parseArgs(argv);
|
|
89
101
|
|
|
90
102
|
if (args.version) {
|
|
@@ -118,9 +130,7 @@ async function cli({argv, cwd, stdout, isStop, workerFormatter, supertape}) {
|
|
|
118
130
|
const allFiles = [];
|
|
119
131
|
|
|
120
132
|
for (const arg of args._) {
|
|
121
|
-
const files =
|
|
122
|
-
.sync(arg)
|
|
123
|
-
.filter(isExclude);
|
|
133
|
+
const files = globSync(arg).filter(isExclude);
|
|
124
134
|
|
|
125
135
|
allFiles.push(...files);
|
|
126
136
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supertape",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.2",
|
|
4
4
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
5
5
|
"description": "📼 Supertape simplest high speed test runner with superpowers",
|
|
6
6
|
"homepage": "http://github.com/coderaiser/supertape",
|