Skip to content

Commit

Permalink
fix: madrun: windows
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Jun 23, 2022
1 parent 4fb023e commit fcc7d29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/madrun.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';

const {pathToFileURL} = require('url');
const keys = require('all-object-keys');
const jessy = require('jessy');
const findUp = require('find-up');
Expand All @@ -17,7 +18,7 @@ async function getScripts() {
if (!path)
throw Error('.madrun.js is missing!');

return (await import(path)).default;
return (await import(pathToFileURL(path))).default;
}

module.exports.cutEnv = async (names, opts = '', env, scripts) => {
Expand Down

0 comments on commit fcc7d29

Please sign in to comment.