To get the correct location of package.json inside the webdriverio directory, we were replacing the webdriverio/build directory in path to webdriver/package.json.
When using this in buildkite pipeline, this was causing the error Error: Cannot find module as buildkite by default creates the build directory, the code was replacing this directory.
To get the correct location of
package.json
inside thewebdriverio
directory, we were replacing thewebdriverio/build
directory in path towebdriver/package.json
.When using this in buildkite pipeline, this was causing the error
Error: Cannot find module
as buildkite by default creates thebuild
directory, the code was replacing this directory.