Skip to content

Commit

Permalink
Merge pull request #15 from juulhobert/master
Browse files Browse the repository at this point in the history
fix: issue where option --use-yarn show a root is not defined error
  • Loading branch information
kobenguyent authored Feb 9, 2024
2 parents 104084b + b67391f commit 5c40f52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.');

Expand All @@ -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;
Expand Down

0 comments on commit 5c40f52

Please sign in to comment.