Skip to content

Commit c363785

Browse files
JPeer264aichbauer
authored andcommitted
Fix: switch from sync to async (#27)
1 parent fda443d commit c363785

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/helpers/cleanNodeModules.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ import path from 'path';
55
const deleteNodeModules = () => {
66
const cwd = process.cwd();
77

8-
return fs.removeSync(path.join(cwd, 'node_modules'));
8+
return fs.remove(path.join(cwd, 'node_modules'));
99
};
1010

1111
const installNodeModules = (hasYarn) => {
1212
if (hasYarn) {
13-
return execa.shellSync('yarn');
13+
return execa.shell('yarn');
1414
}
1515

16-
return execa.shellSync('npm i');
16+
return execa.shell('npm i');
1717
};
1818

1919
export {

0 commit comments

Comments
 (0)