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 +5 -0
- package/bin/madrun.mjs +3 -1
- package/package.json +1 -1
package/ChangeLog
CHANGED
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
|
-
|
|
163
|
+
// always convert path to url on windows
|
|
164
|
+
const esm = await import(pathToFileURL(path));
|
|
163
165
|
|
|
164
166
|
return [
|
|
165
167
|
dirname(path),
|