supertape 6.12.0 → 6.12.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.
Files changed (3) hide show
  1. package/ChangeLog +6 -0
  2. package/lib/cli.js +4 -1
  3. package/package.json +1 -1
package/ChangeLog CHANGED
@@ -1,3 +1,9 @@
1
+ 2022.01.14, v6.12.1
2
+
3
+ fix:
4
+ - (@supertape) engine-loader: windows support
5
+ - (supertape) windows support
6
+
1
7
  2022.01.14, v6.12.0
2
8
 
3
9
  feature:
package/lib/cli.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  const {resolve: resolvePath} = require('path');
4
4
  const {once} = require('events');
5
+ const {pathToFileURL} = require('url');
5
6
 
6
7
  const yargsParser = require('yargs-parser');
7
8
  const glob = require('glob');
@@ -166,7 +167,9 @@ async function cli({argv, cwd, stdout, isStop}) {
166
167
  const files = removeDuplicates(allFiles);
167
168
 
168
169
  for (const file of files) {
169
- promises.push(simpleImport(resolvePath(cwd, file)));
170
+ // always resolve before import for windows
171
+ const resolved = pathToFileURL(resolvePath(cwd, file));
172
+ promises.push(simpleImport(resolved));
170
173
  }
171
174
 
172
175
  filesCount(files.length);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supertape",
3
- "version": "6.12.0",
3
+ "version": "6.12.1",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "📼 Supertape fastest simplest test runner with lots of formatters",
6
6
  "homepage": "http://github.com/coderaiser/supertape",