Merge pull request #282 from bingen/deep_folder_packages

Fix issue with imported packages with subfolders
pull/288/head
c-g-e-w-e-k-e- 6 years ago committed by GitHub
commit a0c29b575f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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