supertape 7.0.1 → 7.1.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.
Files changed (3) hide show
  1. package/ChangeLog +6 -0
  2. package/lib/cli.js +2 -1
  3. package/package.json +2 -1
package/ChangeLog CHANGED
@@ -1,3 +1,9 @@
1
+ 2022.02.18, v7.1.0
2
+
3
+ feature:
4
+ - (supertape) exclude node_modules
5
+
6
+
1
7
  2022.02.17, v7.0.1
2
8
 
3
9
  fix:
package/lib/cli.js CHANGED
@@ -24,6 +24,7 @@ const {isArray} = Array;
24
24
 
25
25
  const maybeFirst = (a) => isArray(a) ? a.pop() : a;
26
26
  const maybeArray = (a) => isArray(a) ? a : [a];
27
+ const isExclude = (a) => !a.includes('node_modules');
27
28
 
28
29
  const removeDuplicates = (a) => Array.from(new Set(a));
29
30
  const filesCount = fullstore(0);
@@ -140,7 +141,7 @@ async function cli({argv, cwd, stdout, isStop}) {
140
141
 
141
142
  const allFiles = [];
142
143
  for (const arg of args._) {
143
- const files = glob.sync(arg);
144
+ const files = glob.sync(arg).filter(isExclude);
144
145
  allFiles.push(...files);
145
146
  }
146
147
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supertape",
3
- "version": "7.0.1",
3
+ "version": "7.1.0",
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",
@@ -80,6 +80,7 @@
80
80
  "eslint": "^8.0.0",
81
81
  "eslint-plugin-node": "^11.1.0",
82
82
  "eslint-plugin-putout": "^13.0.1",
83
+ "find-up": "^6.3.0",
83
84
  "madrun": "^9.0.0",
84
85
  "mock-require": "^3.0.2",
85
86
  "montag": "^1.0.0",