Fix issue with imported packages with subfolders

See: https://github.com/sc-forks/solidity-coverage/issues/131#issuecomment-417748614
pull/282/head
ßingen 6 years ago
parent 1b229a4a11
commit c9c5787238
  1. 3
      lib/app.js

@ -89,7 +89,8 @@ class App {
if (!this.copyNodeModules && this.copyPackages.length) {
shell.mkdir(this.coverageDir + '/node_modules');
this.copyPackages.forEach((nodePackage) => {
shell.cp('-rfL', 'node_modules/' + nodePackage, this.coverageDir + '/node_modules/');
shell.mkdir('-p', this.coverageDir + '/node_modules/' + nodePackage);
shell.cp('-rfL', 'node_modules/' + nodePackage + '/.', this.coverageDir + '/node_modules/' + nodePackage);
});
}

Loading…
Cancel
Save