mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
pre publish script to fix the needs of removing packcage
This commit is contained in:
parent
d6f856f1c5
commit
b5631b9a7f
@ -127,6 +127,8 @@ while [[ $1 == -* ]]; do
|
||||
esac
|
||||
done
|
||||
|
||||
node ./scripts/pre-publish.js
|
||||
|
||||
if $EXEC_BUILD == true; then
|
||||
echo "====== INSTALL AND CLEAN ${PACKAGE} ===== "
|
||||
npm install rimraf
|
||||
|
14
scripts/pre-publish.js
Normal file
14
scripts/pre-publish.js
Normal file
@ -0,0 +1,14 @@
|
||||
var fs = require('fs');
|
||||
var file = require('../package.json');
|
||||
|
||||
|
||||
Object.keys(file.dependencies).forEach((currentDep)=>{
|
||||
|
||||
if(currentDep.indexOf("@alfresco/adf-")>=0) {
|
||||
delete file.dependencies[currentDep];
|
||||
}
|
||||
});
|
||||
|
||||
fs.writeFileSync('package.json', JSON.stringify(file), function (err) {
|
||||
if (err) return console.log(err);
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user