File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
packages/artillery/lib/platform/aws-ecs/legacy Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -236,25 +236,20 @@ function getCustomEngines(context, next) {
236236
237237function getCustomJsDependencies ( context , next ) {
238238 if ( context . opts . scriptData . config ?. processor ) {
239- // When using a separate config file, resolve paths relative to the scenario file
240- // Otherwise, resolve relative to the config file
241- const baseDir = context . opts . scenarioPath
242- ? path . dirname ( context . opts . scenarioPath )
243- : path . dirname ( context . opts . absoluteScriptPath ) ;
244-
245239 //
246240 // Path to the main processor file:
247241 //
242+
248243 const procPath = path . resolve (
249- baseDir ,
244+ path . dirname ( context . opts . absoluteScriptPath ) ,
250245 context . opts . scriptData . config . processor
251246 ) ;
252247 context . localFilePaths . push ( procPath ) ;
253248
254249 // Get the tree of requires from the main processor file:
255250 const tree = depTree . toList ( {
256251 filename : procPath ,
257- directory : baseDir ,
252+ directory : path . dirname ( context . opts . absoluteScriptPath ) ,
258253 filter : ( path ) => path . indexOf ( 'node_modules' ) === - 1 // optional
259254 } ) ;
260255
You can’t perform that action at this time.
0 commit comments