diff --git a/Readme.md b/Readme.md index 2445d59..9f706e2 100644 --- a/Readme.md +++ b/Readme.md @@ -49,6 +49,7 @@ Supported options: * `--webdriverio` - installs WebdriverIO as default helper * `--testcafe` - installs TestCafe as default helper * `--use-yarn` - yes, we support yarn too! +* `--force`, - accept an incorrect (and potentially broken) dependency resolution when installing with NPM ## NPM Scripts diff --git a/index.js b/index.js index 709e84a..45bcbd7 100755 --- a/index.js +++ b/index.js @@ -164,7 +164,7 @@ async function createCodecept(opts) { fs.writeJsonSync('package.json', packageJson, { spaces: 4 }); - await install(deps.flat()); + await install(root, deps.flat()); console.log('Finished installing packages.'); @@ -188,7 +188,7 @@ async function createCodecept(opts) { } } -async function install(dependencies, verbose) { +async function install(root, dependencies, verbose) { return new Promise((resolve, reject) => { let command; let args; diff --git a/package.json b/package.json index c39892f..df6fbd5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "create-codeceptjs", - "version": "1.0.1", + "version": "1.0.2", "description": "Install CodeceptJS with all its dependencies in a single run", "main": "index.js", "bin": {