File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -107,13 +107,13 @@ export const runDangerfileEnvironment = async (
107
107
d ( "Started parsing Dangerfile: " , filename )
108
108
let optionalExport
109
109
if ( filename . endsWith ( ".mts" ) ) {
110
- const tmpFileName = path . join ( process . cwd ( ) , `._dangerfile.mjs` )
110
+ const tmpFileName = path . resolve ( process . cwd ( ) , `._dangerfile.mjs` )
111
111
fs . writeFileSync ( tmpFileName , compiled )
112
112
// tried but data urls have trouble with imports and I don't know how to fix
113
113
// optionalExport = (await import(`data:text/javascript;base64,${btoa(compiled)}`));
114
114
optionalExport = await import ( tmpFileName )
115
115
} else if ( filename . endsWith ( ".mjs" ) ) {
116
- optionalExport = await import ( path . join ( process . cwd ( ) , filename ) )
116
+ optionalExport = await import ( path . resolve ( process . cwd ( ) , filename ) )
117
117
} else {
118
118
optionalExport = _require ( compiled , filename , { } )
119
119
}
You can’t perform that action at this time.
0 commit comments