Skip to content

Commit b67391f

Browse files
committed
Fixed use where option --use-yarn show a root is not defined error
1 parent 7faf193 commit b67391f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ async function createCodecept(opts) {
156156
fs.writeJsonSync('package.json', packageJson, { spaces: 4 });
157157

158158

159-
await install(deps.flat());
159+
await install(root, deps.flat());
160160

161161
console.log('Finished installing packages.');
162162

@@ -180,7 +180,7 @@ async function createCodecept(opts) {
180180
}
181181
}
182182

183-
async function install(dependencies, verbose) {
183+
async function install(root, dependencies, verbose) {
184184
return new Promise((resolve, reject) => {
185185
let command;
186186
let args;

0 commit comments

Comments
 (0)