@@ -25,6 +25,9 @@ import {
2525import blacklist from './routes/blacklist.js' ;
2626import validateTasks from './routes/validate-tasks.js' ;
2727import Executions from './executions.js' ;
28+ import {
29+ set ,
30+ } from './helper/root-package.js' ;
2831
2932// eslint-disable-next-line complexity
3033export const run = async (
@@ -46,7 +49,11 @@ export const run = async(
4649 job ?: Job | Array < Task > | undefined ,
4750 // eslint-disable-next-line max-params
4851) : Promise < void > => {
52+ if ( ! configuration . cwd ) {
53+ configuration . cwd = process . cwd ( ) ;
54+ }
4955 await locale ( configuration . language || DEFAULT_LANGUAGE , ) ;
56+ set ( configuration . cwd , ) ;
5057 if ( typeof configuration . logger === 'undefined' ) {
5158 configuration . logger = new NullLogger ( ) ;
5259 }
@@ -64,12 +71,12 @@ export const run = async(
6471 }
6572 if ( typeof configuration . blacklist === 'undefined' ) {
6673 configuration . blacklist = blacklist (
67- process . cwd ( ) ,
74+ configuration . cwd ,
6875 configuration . mode || 'benchmarking' ,
6976 ) ;
7077 }
7178 if ( typeof job === 'undefined' ) {
72- job = await jobCreator ( configuration . cwd || process . cwd ( ) , ) ;
79+ job = await jobCreator ( configuration . cwd , ) ;
7380 } else if ( typeof job === 'object' && Array . isArray ( job , ) ) {
7481 job = {
7582 before : [ ] ,
0 commit comments