madrun 8.10.0 → 8.10.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,8 @@
1
+ 2022.01.14, v8.10.1
2
+
3
+ fix:
4
+ - (madrun) windows support
5
+
1
6
  2022.01.14, v8.10.0
2
7
 
3
8
  feature:
package/bin/madrun.mjs CHANGED
@@ -151,6 +151,7 @@ function getOptions(args) {
151
151
  }
152
152
 
153
153
  async function getScript() {
154
+ const {pathToFileURL} = require('url');
154
155
  const supported = require('../supported.json');
155
156
  const path = findUp.sync(supported);
156
157
 
@@ -159,7 +160,8 @@ async function getScript() {
159
160
  process.exit(1);
160
161
  }
161
162
 
162
- const esm = await import(path);
163
+ // always convert path to url on windows
164
+ const esm = await import(pathToFileURL(path));
163
165
 
164
166
  return [
165
167
  dirname(path),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "madrun",
3
- "version": "8.10.0",
3
+ "version": "8.10.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",