From 75b81a10e50eb423d71be2fbf79e01d6b0db9b61 Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Tue, 3 Mar 2020 10:01:51 -0500 Subject: [PATCH] fix: print cwd when starting the command, close #99 --- dist/index.js | 5 +++-- index.js | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 59460422e..445d528c1 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6519,8 +6519,10 @@ const startServerMaybe = () => { return } + const cwd = cypressCommandOptions.cwd + console.log('starting server with command "%s"', startCommand) - console.log('current working directory "%s"', process.cwd()) + console.log('current working directory "%s"', cwd) const args = cliParser.parse(startCommand) core.debug(`parsed command: ${args.join(' ')}`) @@ -6531,7 +6533,6 @@ const startServerMaybe = () => { const toolArguments = args.slice(1) const argsString = toolArguments.join(' ') - const cwd = cypressCommandOptions.cwd core.debug(`running ${quote(toolPath)} ${argsString} in ${cwd}`) core.debug('without waiting for the promise to resolve') diff --git a/index.js b/index.js index 00afe832f..c58e2b322 100644 --- a/index.js +++ b/index.js @@ -236,8 +236,10 @@ const startServerMaybe = () => { return } + const cwd = cypressCommandOptions.cwd + console.log('starting server with command "%s"', startCommand) - console.log('current working directory "%s"', process.cwd()) + console.log('current working directory "%s"', cwd) const args = cliParser.parse(startCommand) core.debug(`parsed command: ${args.join(' ')}`) @@ -248,7 +250,6 @@ const startServerMaybe = () => { const toolArguments = args.slice(1) const argsString = toolArguments.join(' ') - const cwd = cypressCommandOptions.cwd core.debug(`running ${quote(toolPath)} ${argsString} in ${cwd}`) core.debug('without waiting for the promise to resolve')