Skip to content

Commit

Permalink
fix pre-publish.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
eromano committed May 4, 2020
1 parent fa1e691 commit 672ef3d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/pre-publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ Object.keys(file.dependencies).forEach((currentDep)=>{
}
});

Object.keys(file.devDependencies).forEach((currentDep)=>{

if(currentDep.indexOf("@alfresco/adf-")>=0) {
delete file.devDependencies[currentDep];
}
});


fs.writeFileSync('package.json', JSON.stringify(file), function (err) {
if (err) return console.log(err);
});

0 comments on commit 672ef3d

Please sign in to comment.